Page 1 of 1

php basic

Posted: Fri Oct 29, 2010 12:59 am
by rajanp

Code: Select all

<?php
function Test()
{
static $count=0;
$count++;
echo $count."<br>";
if($count<10)
{
Test();
}
Test();
}
?>
i like to know the execution sequence and explanation.


scottayy wrote:Please use the PHP Code button when posting code in the forums.

Re: php basic

Posted: Fri Oct 29, 2010 1:07 am
by s.dot

Re: php basic

Posted: Fri Oct 29, 2010 4:52 am
by Benjamin
:arrow: Moved to PHP - Code