+ 1
What is a local scope?
variable
3 Réponses
0
function myfunc() {
$var = 3; // local scope
echo $var;
}
It means you can only access the variable inside the function and NOT outside of it.
- 2
local scope variables you can use between the open and closing paranthesis of the function only.
- 2
L