+ 9
What is global?
36 Antworten
+ 32
Global declaration of a variable means the variable can be declared at once and can be used throughout the program anywhere .
The global declaration is done at the start of the program after header files and before the start of main function or any other function.
+ 6
it is a variable to mention a outside of the content program
local is with in the content program
+ 6
Write once, access from anywhere.
+ 4
a global variable is a variable that is visible in all functions
+ 3
As I know n according to the tutorial, u can use it inside the function to enable access to the variable value declared outside ur function
+ 3
Accessible in all functions
+ 3
Global is the outermost environment. It is outside of all functions. For a browser, Global is your browser window. Just the window, not the browser.
+ 3
In PHP, global variables are referred to the variable that are available in any page that contains PHP script in your website. Examples are - $_GET, $_SESSONS, $_COOKIE and $_GLOBAL
+ 2
accessible by all class/variable in your program....
+ 1
🖐
+ 1
I am awesome no exception!!!!
+ 1
it's variables you can call it from any where in programme
+ 1
declare in all functions
+ 1
global is a php keyword used for accessing variable which is out side the function
+ 1
declared once in program use at any place depending on need
+ 1
warming
0
global variable - means can be used anywhere in your code. There are also local - can be used inside function, class variable - inside your class, and instance variable - variable that is used within object.
0
global variable are those variable which are declared in the header section . It can be used anywhere in the any part of the program .
0
A scope is a region of the program and broadly speaking there are three places, where variables can be declared − Inside a function or a block which is called local variables, In the definition of function parameters which is called formal parameters. Outside of all functions which is calledglobal variables.
0
declarations that are done globally (variable or function) can be used anywhere in the program..