How I use global variable in another page without using
$_GET method?
Answer Posted / minnie
The above answer is wrong.
U can use that in any function in any class.
In which function u need to use global variable, do the
following:-
global $testVariable;
Now u can this variable in the current function
| Is This Answer Correct ? | 1 Yes | 3 No |
Post New Answer View All Answers
What software is required for php?
What is csrf cookie?
Explain what are the different errors in php?
How do you trim spaces in excel?
What is the use of curl()?
What is the default time in seconds for which session data is considered valid?
How many different types of messages available in php?
Can php variables have numbers?
How can we execute a php script using command line?
Is php a float?
What is instantiation?
Which is not a file-related function in php?
Why do we use csrf token?
Can we extend multiple classes in php?
Does php support multiple inheritances?