autsch, that's true, sorry for disturbing....
thx Jason
janbro

Jason Barnett schrieb:
> 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.3
> 
> 
> Because you've defined the function, but you've never called it.
> 
>>
>> thx
>> janbro
>>
>>
>> Example 7-6. Static variables with recursive functions
>>
>> <?php
>> function Test()
>> {
>>     static $count = 0;
>>
>>     $count++;
>>     echo $count;
>>     if ($count < 10) {
>>         Test ();
>>     }
>>     $count--;
>> }
> 
> 
> Test();
> 
>> ?>
> 
> 

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

Reply via email to