RE: [PHP] Array - Newbie question

From: Date: Sun, 09 Mar 2003 01:39:27 +0000
Subject: RE: [PHP] Array - Newbie question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-138813@lists.php.net to get a copy of this message
> You need to have this > > $EricCodesArray = array ( > "CO" => array("Description", > "Input Name", > "Select Name", > "Option Name", > "Option Selected"), > "AN" => array("ERIC Number", > "EricAN", > "SelAN", > "AN", > "AN <Annotation>"), > "TI" => array("Title", > "EricTI", > "SelTI", > "BT", > "BT <Book Title>") > ); > > you must place the 5 elements in a sub array and then use echo $EricCodesArray['TI'][2]; to get "SelTI" ---John Holmes...

« previous php.general (#138813) next »