Variable scope: function : Variable Scope « Language Basics « PHP
- PHP
- Language Basics
- Variable Scope
Variable scope: function
<?php
increment ();
increment ();
increment ();
function increment () {
$a=0;
echo $a;
$a++;
}
?>
Related examples in the same category