Monday, 23 June 2014

What is register_global in PHP.ini ?


What is register_global in PHP.ini ?

By default register_global is off. when it on, there is no need to define variable, every variables are set.

Example :

if($test){ echo "Hello"; } // this condition true
$_POST['username'] you can use $username for this.
when it off above condition is not true.

No comments: