note 14384 added to language.types.array.php

From: Date: Sat, 28 Jul 2001 21:45:19 +0000
Subject: note 14384 added to language.types.array.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-15997@lists.php.net to get a copy of this message
The documentation here for multidimentional arrays is sparse to say the least. One BASIC thing that should be here is how to actually REFERENCE multiple dimentions in an array: $array[index_of_dim1][index_of_dim_2] etc... that is to say, if you have the array $people = array("girls" => array("tallie", "juanita", "pearle") ,"boys" => array("bob", "cletis", "jeb")); then $people["girls"][0] would return "tallie" $people["boys"][1] would return "cletis" (slackjawed yokel would only be inferred by the savvy user) ;) etc... http://www.php.net/manual/en/language.types.array.php

« previous php.notes (#15997) next »