Re: Calling functions recursively

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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:  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
> 
> 



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux