Suppose I do this:
$array[] = 1;
$array[] = 2;
$array[] = 15;
this works, the name value pairs would be 0:1, 1:2, 2:15
now, how about this:
$array[] = 1;
$array[] = 2;
$array['macaroni'] = 15;
$array['cheese'] = 25;
asking for $array[0] will give 1, $array[1] will give 2, etc. But there are times I don't want to find $array['macaroni'] but $array[2] instead. Is there any way of calling the internal index of the array (which I assume to be 2) versus 'macaroni'???
This is a lesson in how php thinks about arrays.
Sam Fullman
Compass Point Media.