On Sun, Jun 5, 2011 at 9:52 PM, Zeev Suraski <z...@zend.com> wrote: >> -----Original Message----- >> class Hello { >> public function world($x) { >> echo "Hello, $x\n"; return $this; >> } >> } >> >> $f = array(new Hello, 'foo'); >> $f(); > > Am I the only one who doesn't understand what this one is supposed to do..?
Hello::World(), like what you do in call user func, or similar to. -- Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php