Looping Through the $GLOBALS Array : GLOBALS « Language Basics « PHP
- PHP
- Language Basics
- GLOBALS
Looping Through the $GLOBALS Array
<html>
<head>
<title>Looping through the $GLOBALS array</title>
</head>
<body>
<?php
foreach ( $GLOBALS as $key=>$value ){
print "\$GLOBALS[\"$key\"] == $value<br>";
}
?>
</body>
</html>
Related examples in the same category