Re: Question to example from manual
| From: | Jason Barnett | Date: | Thu, 16 Jun 2005 20:36:47 +0000 |
| Subject: | Re: Question to example from manual | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-217101@lists.php.net to get a copy of this message | ||
janbro wrote:
Hi, I've been working on this example and copied it in my webroot, it doesn't give me an output. Does anybody know why? "System" WinXP Apache 2.0.50 php 5.0.3Because you've defined the function, but you've never called it.
thx janbro Example 7-6. Static variables with recursive functions <?php function Test() {Test();static $count = 0;$count++; echo $count; if ($count < 10) { Test (); } $count--;}
?>-- NEW? | http://www.catb.org/~esr/faqs/smart-questions.html STFA | http://marc.theaimsgroup.com/?l=php-general&w=2 STFM | http://php.net/manual/en/index.php STFW | http://www.google.com/search?q=php