Re:Short array syntax finally in PHP 5.4
by jonathanyc on Sunday July 24, 2011 @06:14PM
(#2800491)
(Un)fortunately, depending on how you look at it, "everything is an object" is left out in PHP. I personally agree with having some non-object values (use one of the Spl* classes if you want something like that).
[1,2,3]->push(..) [3,5,6,]->pop(..) [7,8,9]->map(..)
etc..