Mutability and Reference for PHP5 GET Variables
5 answers
register_globals is an invention of the devil. Fortunately, in PHP 6.0 it will be completely disabled. This was not just a huge security issue, it made people confused. Please disable it in php.ini using register_globals = Off. More information: http://us2.php.net/register_globals You can also check the current settings with the command if (ini_get (register_globals)) echo "turn off! :) ';
+2
source to share
$ _ Get ['myvar'] - an element of the array $ myvar is a variable. Between these two
($ _ GET is a superglobal array)
consider the following example
$ myarry = array ('myvar' => 'myvalue'); - here myvar is an element in the $ myarray array variable $ myvar = ''; - here myvar is itself a variable.
0
source to share