Local variable in php examples
Variable declaration with in the function is called local variable. The access able scope of local variable is that function only
<?php
Function fun1()
{
$x=100;// variable declaration with in the function
Echo $x;
}
Fun()1;//function call
?>
Variable declaration with in the function is called local variable. The access able scope of local variable is that function only
<?php
Function fun1()
{
$x=100;// variable declaration with in the function
Echo $x;
}
Fun()1;//function call
?>