Hacker News new | past | comments | ask | show | jobs | submit login

"You can't do: $something->doStuff()[0]" Yes you can. -------------

AFAIK, yes, in PHP 5.4 only so far, which is only about 4 months old. The first 15+ years of PHP's life, no, that wasn't possible. I'm glad it's there now, but frustrated it took so long.




Did not know this!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: