Page MenuHomePhabricator
Paste P8970

Thank you puppet, you're the gift that keeps on giving.
ActivePublic

Authored by Joe on Aug 23 2019, 5:22 PM.
$damn = ['seriously', 'wtf']
notice(type($damn)) # Tuple[String, String]
# Ok, it should be possible to convert it to an array right?
$really = Array($damn)
notice(type($really)) # Guess what? yes you guessed right. Tuple[String, String]
# Ok, let's get fancy and to use something that's not really recommended.
$ohlol = Array.new($damn)
notice(type($ohlol)) # by now, you know the drill...

Event Timeline

Joe created this paste.Aug 23 2019, 5:22 PM