Switch to full style
:read: Start PHP with us. Includes topics to help you in php
Post a reply

Looping Through the GLOBALS Array

Mon Oct 27, 2008 1:02 pm

Code:
<html>
<head>
<title>Looping through the $GLOBALS array</title>
</head>
<body>
<?php
foreach ( $GLOBALS as $key=>$value ){
   print
"\$GLOBALS[\"$key\"] == $value<br>";
}
?>
</body>
</html>




Post a reply
  Related Posts  to : Looping Through the GLOBALS Array
 Looping through an Enumerated Array     -  
 Array difference for associate array     -  
 compare an array with another array?     -  
 XML Document into an Array in php     -  
 Pop the element off the end of array     -  
 Shuffle Array     -  
 Here is how to display any 2d array     -  
 PHP Array Functions     -  
 Array shuffle     -  
 Array Passing     -  

Topic Tags

PHP Arrays