RE: [PHP-DEV] $arr = array('Hello', 'world'); $arr();
| From: | Zeev Suraski | Date: | Sun, 05 Jun 2011 19:52:38 +0000 |
| Subject: | RE: [PHP-DEV] $arr = array('Hello', 'world'); $arr(); | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-52959@lists.php.net to get a copy of this message | ||
> -----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..?
Zeev