Static variable in php examples
Static variable can maintain the previous value we can assign the value only one time to the static variable.
Reference variable in php examples
This reference variable symbol is &
<?php
$x=100;
$y=&$x;
Echo $y;//out put 100
$y=200;
Echo $x;// out put 200
?>
Static variable can maintain the previous value we can assign the value only one time to the static variable.
Reference variable in php examples
This reference variable symbol is &
<?php
$x=100;
$y=&$x;
Echo $y;//out put 100
$y=200;
Echo $x;// out put 200
?>