This site is mobile accessible. Press the "Tap Here" button to use a different font-size.


Smartphone icons created by Freepik - Flaticon

PHP The static Keyword

0
1
2

<?php
// declare myTest() function
function myTest() {
  static $x = 0;
  echo $x;
  $x++;
}

// run function multiple times
myTest();
echo "<br>";
myTest();
echo "<br>";
myTest();
?>