Array - Newbie question
| From: | John Taylor-Johnston | Date: | Sun, 09 Mar 2003 01:00:07 +0000 |
| Subject: | Array - Newbie question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-138809@lists.php.net to get a copy of this message | ||
>>echo $EricCodesArray[2][2];
No. Sorry. Empty set.
I would also like to express it something like:
select EricCodesArray where TI displays [2]
I want to pass TI into a function and build some html for that record.
Pseudo code:
echo (<P>TI[0] <input name="TI[1]"> <select
name="TI[2]"><option name="TI[3]"></select>);
$EricCodesArray = array (
"CO" => "Description", "Input Name", "Select Name",
"Option Name", "Option Selected",
"AN" => "ERIC Number", "EricAN", "SelAN", "AN",
"AN «Annotation»",
"TI" => "Title", "EricTI", "SelTI", "BT",
"BT «Book Title»"
);