0

global variable can't be used anywhere in the program?

15th Jan 2016, 7:43 AM
Vikas Kumar Choudhary
Vikas Kumar Choudhary - avatar
5 Respostas
+ 2
it can be used in the global scope. in local scope only if it was declared with "global $VARNAME" statement
15th Feb 2016, 11:15 PM
Igor Kuzmenko
Igor Kuzmenko - avatar
0
Yes. If you use $global you can use it everywhere
17th Mar 2016, 11:11 AM
Ted
Ted - avatar
0
yes global variable can use within function as global $name
22nd Aug 2016, 3:32 PM
Manik Kore
Manik Kore - avatar
- 2
can not be used inside the function
14th Mar 2016, 9:07 AM
Vicky Singh
Vicky Singh - avatar
- 2
yes they cannot be.
31st Mar 2016, 12:53 PM
Lesego Alex
Lesego Alex - avatar