Toggle navigation
Home
Latest pastes
FAQ
Random
Register
Login
PHP The static Keyword
SUBMITTED BY:
henry1874w
DATE:
June 4, 2017, 8 p.m.
FORMAT:
Text only
SIZE:
113 Bytes
Raw
Download
Tweet
HITS:
220
Go to comments
Report
<?php
function myTest() {
static $x = 0;
echo $x;
$x++;
}
myTest();
myTest();
myTest();
?>
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus