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
How can you compare objects in php?
Why json is used in php?
What is htmlentities function in php?
Explain what does the unset() function means?
Can you use both this () and super () in a constructor?
Explain do you use composer? If yes, what benefits have you found in it?
Tell us how to redirect a page in php?
What is inheritance in php? How many types of inheritance supports php?
What is apache and php?
Why do we use polymorphism in php?
What is the default session time in php?
How to find a specific value in an array?
What is session in PHP. How to remove data from a session?
I am trying to assign a variable the value of 0123, but it keeps coming up with a different number, what’s the problem?
What does $_ post mean in php?