PHP-Static Variable

Static Variable program in php: -

<?php
function myTest(){
static $x=100;
echo $x."<br>";
$x++;
}
myTest();
myTest();
myTest();
?>

Comments

Popular posts from this blog

Child Development and Pedagogy - MCQ

Child Development and Pedagogy - MCQ-02

jQuery-Banner