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?     -  
 array unshift     -  
 Average of an array. Please help     -  
 Add elements to the end of an array     -  
 Get array chunk     -  
 Array sort     -  
 Array size to zero     -  
 C++ array copying     -  

Topic Tags

PHP Arrays