|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2010-01-29 06:43 UTC] giorgio dot liscio at email dot it
Description:
------------
hi, in future i hope to can get the callee of an anonymous function... for example:
Reproduce code:
---------------
function(&$count) use (0)
{
echo $count++;
if($count<100)
{func_get_callee()}($count);
}
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 04 21:00:02 2025 UTC |
This can already be done. Use the following code: $countup = function($count) use (&$countup) { echo $count++; if ($count<100) $countup($count); }; $countup();