note 118064 added to functions.variable-functions
| From: | Anonymous | Date: | Mon, 28 Sep 2015 11:18:34 +0000 |
| Subject: | note 118064 added to functions.variable-functions | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-203865@lists.php.net to get a copy of this message | ||
i'm not sure, but simple mistake in this place ($f instead $func):
<?php
$func = array("Foo", "bar");
$func(); // prints "bar"
$f = array(new Foo, "baz");
$func(); // prints "baz"
$f = "Foo::bar";
$func(); // prints "bar" as of PHP 7.0.0; prior, it raised a fatal error
?>
----
Server IP: 72.52.91.14
Probable Submitter: 89.185.93.229
----
Manual Page -- http://php.net/manual/en/functions.variable-functions.php
Edit -- https://master.php.net/note/edit/118064
Del: integrated -- https://master.php.net/note/delete/118064/integrated
Del: useless -- https://master.php.net/note/delete/118064/useless
Del: bad code -- https://master.php.net/note/delete/118064/bad+code
Del: spam -- https://master.php.net/note/delete/118064/spam
Del: non-english -- https://master.php.net/note/delete/118064/non-english
Del: in docs -- https://master.php.net/note/delete/118064/in+docs
Del: other reasons-- https://master.php.net/note/delete/118064
Reject -- https://master.php.net/note/reject/118064
Search -- https://master.php.net/manage/user-notes.php