I just saw this code while studying the wordpress source code (PHP), You can see they mergre/turn all get and post values into 1 request array.
Now as I know it, $_GET and $_POST are already available by calling $_REQUEST <strong>WITHOUT</strong> using the array_merge() function, so any ideas why they would do this?
Now as I know it, $_GET and $_POST are already available by calling $_REQUEST <strong>WITHOUT</strong> using the array_merge() function, so any ideas why they would do this?
Code:
$_REQUEST = array_merge($_GET, $_POST);