+ 1

What is a local scope?

variable

25th Feb 2017, 4:14 PM
Ayato Camus Guei
Ayato Camus Guei - avatar
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.
25th Feb 2017, 5:29 PM
Dev
Dev - avatar
- 2
local scope variables you can use between the open and closing paranthesis of the function only.
28th Feb 2017, 2:48 AM
yushan fernando
yushan fernando - avatar
- 2
L
1st Mar 2017, 9:08 AM
Bertus Stein