Folks,
Look at these 2 samples. I don;t think the PRE makes any difference but what is best practice ?
[code]
<?php
$x5 = 9; //’Global Variable’ as outside function. It now exists in “Super Global” Variable array as: $GLOBALS[‘x5′].
$y5 = 10; //’Global Variable’ as outside function. It now exists in “Super Global” Variable array as: $GLOBALS[‘y5’].
foreach($GLOBALS as $GLOWBAL)
{
print_r($GLOWBAL);
}
?>
[code]
<?php
$x5 = 9; //’Global Variable’ as outside function. It now exists in “Super Global” Variable array as: $GLOBALS[‘x5′].
$y5 = 10; //’Global Variable’ as outside function. It now exists in “Super Global” Variable array as: $GLOBALS[‘y5’].
foreach($GLOBALS as $GLOWBAL)
{
echo “<pre>”;
print_r($GLOWBAL); echo ‘<br>’;
echo “<pre>”;
}
?>