Created
September 22, 2017 09:59
-
-
Save przor3n/51a871da5547f47ad81cafed67234441 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function testStatic($dupa){ | |
static $i = 0; | |
static $last = 100; | |
echo $last; | |
return $dupa . " - " . $i++; | |
} | |
foreach (range(0,20) as $nn) { | |
echo testStatic($nn) . "\n"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment