RE: [PHP] Array - Newbie question
| From: | daniel | Date: | Sun, 09 Mar 2003 05:08:45 +0000 |
| Subject: | RE: [PHP] Array - Newbie question | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-138833@lists.php.net to get a copy of this message | ||
sorry yeh its not a numbered key as like the next posts $EricCodesArray[TI][2]
>===== Original Message From jtjohnston@courrier.usherb.ca =====
>echo $EricCodesArray[2][2];
>
>No.
>
>
>> would this work ?
>> $EricCodesArray[2][2] ?
>> <?php
>> #http://www.php.net/manual/en/ref.array.php
>> $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»"
>> );
>>
>> echo $EricCodesArray=>TI[2]; //should display "SelTi"
>>
>> ?>
>>
>> I want to display "SelTi". How to code for it? I know I should know this.
>> EricCodesArray where TI = [2]
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php