This is just a caution to people looping through an array. It caused me a problem so I thought I'd share it.
<?
$a[1]='one';
$a[0]='zero';
foreach ($a as $val)
echo "<br>$val";
?>
This will print out...
one
zero
I'm sure many people like me would assume a non associative array would print out in array index order and not the order in which the elements were defined.
To print out in index order use ksort($a) before the foreach.
--
Roger