note 124627 added to functions.anonymous
| From: | lincoln dot du dot j at gmail dot com | Date: | Mon, 20 Jan 2020 13:10:34 +0000 |
| Subject: | note 124627 added to functions.anonymous | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-213926@lists.php.net to get a copy of this message | ||
Recursive anonymous function with reference in use keyword
$r=function()use(&$r){static $i=10;echo $i.PHP_EOL;($i--)?$r():$i;};$r();
----
Server IP: 45.112.84.4
Probable Submitter: 185.85.3.195 (proxied: 103.134.192.12)
----
Manual Page -- http://php.net/manual/en/functions.anonymous.php
Edit -- https://master.php.net/note/edit/124627
Del: integrated -- https://master.php.net/note/delete/124627/integrated
Del: useless -- https://master.php.net/note/delete/124627/useless
Del: bad code -- https://master.php.net/note/delete/124627/bad+code
Del: spam -- https://master.php.net/note/delete/124627/spam
Del: non-english -- https://master.php.net/note/delete/124627/non-english
Del: in docs -- https://master.php.net/note/delete/124627/in+docs
Del: other reasons-- https://master.php.net/note/delete/124627
Reject -- https://master.php.net/note/reject/124627
Search -- https://master.php.net/manage/user-notes.php