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


Please Help Members By Posting Answers For Below Questions

Why do we use php?

538


What is the best php version for wordpress?

525


Can you convert php to html?

532


Is age interval or ordinal data?

522


List few sensible functions in PHP?

564






What does it mean when it says the csrf token is invalid?

498


What is different types of visibility?

536


What is composer phar?

499


Why does sql injection happen?

569


Which MySQL function would you use to select a database?

562


What is php built on?

503


Explain me what is the difference between $_files['userfile']['name'] and $_files['userfile']['tmp_name']?

487


What is sticky form in php?

501


What is the delimiter syntax is PHP's default delimiter syntax

745


What is the use of hooks?

533