Re: Calling functions recursively

From: Date: Sat, 25 Jan 2003 07:39:39 +0000
Subject: Re: Calling functions recursively
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-25126@lists.php.net to get a copy of this message
Kevin, Have fun and be sure to guarantee the prevent never ending looping. Roberto <?php function RecursiveFunction($aCounter) { if($aCounter <= 10) { echo "<br>Counting to ten: $aCounter\n"; $aCounter++; RecursiveFunction($aCounter); } } ?> ----- Original Message ----- From: "Kevin Gordon" <kgordon@paradise.net.nz> To: <php-db@lists.php.net> Sent: Saturday, January 25, 2003 7:49 AM Subject: [PHP-DB] Calling functions recursively > Can functions / methods be called recursively? If so how can this be > done? Comments much appreciated. > Kevin Gordon > > > > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.db (#25126) next »