On 16 Jan 2009, at 9:19, Scott Hill wrote:
With the second array:$food[] = array('id' => 1, 'name' => 'banana'); $food[] = array('id' => 2, 'name' => 'taco'); $food[] = array('id' => 3, 'name' => 'toast'); Why can't you do something like ... echo 'Today we will be eating '.$food[food_id]['name'];
Because the index of banana is zero, not 1.
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ UPHPU mailing list [email protected] http://uphpu.org/mailman/listinfo/uphpu IRC: #uphpu on irc.freenode.net
