note 54325 deleted from language.functions by felipe

From: Date: Mon, 07 Jan 2008 01:45:04 +0000
Subject: note 54325 deleted from language.functions by felipe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-134906@lists.php.net to get a copy of this message
Note Submitter: bjorn_nelson at yahoo dot com ---- @ gilthansNOSPAAM at gmailSPAAMBLOCK dot com Your first example works just fine. There is no reason that pass-by-reference arguments can't work with recursion. This is what I used: <?php $foo = 0; function bar(&$foo){ $foo++; echo $foo."\n"; if($foo < 10) bar($foo); } bar($foo); ?>

« previous php.notes (#134906) next »