Posted by Default User on 07/20/05 20:49
Lorenzo wrote:
> I want to directly access the the individual values in an array by
> using their keys. Can this be done in PHP? The O'Reilly book I have
> "Programming PHP" does not show how to do this. IT shows ways of
> iterating through the array and processing keys, grabbing key/value
> pairs, but I see a map-like function that will allow direct access.
While books are great, I'd recommend also reviewing the subjects using
the on-line docs at http://php.net for detailed syntax and semantics.
http://us2.php.net/manual/en/language.types.array.php
There you would find examples of accessing arrays in various ways.
Brian
[Back to original message]
|