This question already has an answer here:
I'm using following PHP version on my local machine and running the PHP programs from localhost only.
PHP 5.3.10-1ubuntu3.13 with Suhosin-Patch (cli) (built: Jul 7 2014 18:54:55)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies
I've written a very simple PHP program as follows:
<!DOCTYPE html>
<html>
<body>
<?php
$x = 5;
$y = 10;
print_r($GLOBALS);
die;
function myTest() {
global $x, $y;
$y = $x + $y;
}
myTest(); // Run function
echo $y; // Output the new value for variable $y
?>
</body>
</html>
After executing the above program I'm getting following output in a browser window:
Array ( [GLOBALS] => Array *RECURSION* [_POST] => Array ( ) [_GET] => Array ( ) [_COOKIE] => Array ( ) [_FILES] => Array ( ) [x] => 5 [y] => 10 )
From the above output I'm not getting why the string RECURSION is getting displayed, from where it came. What's the cause behind it?
Also, why is the underscore character appearing at the beginning of all contained arrays**(_POST, _GET, _FILES)**?
</div>