Mutiple consecutive outputs instead of one in a function in PHP – PHP Versions
I am learning about static variables in PHP and came across this code in PHP manual. <?php function test() { static $count = 0; $count++; echo $count; if ($count < 10) { test(); } $count--; } ?> I couldn't understand…