Code: Select all
$thing = array (
(
NUM1 => '1',
NUM2 => '2',
NUM3 => '3',
NUM4 => '4',
NUM5 => '5',
)
);
foreach ($thing as $key => $val)
{
echo '\$thing index 1 = ' . $thing[$key] . '<BR>';
}i would like to turn that into a for loop because i find for loops easier and i like to keep my code as generic as possible for easy portablility for later. hey, you never know, ya know? lol
k, thx