Posted by Guillaume Dargaud on 09/27/78 12:01
> If you're looking for key instead of item you should write:
> foreach( $array as $key => $item )...
Right, I should have written $item
> looking for item? use array_search.
Hmmm... But I'm looking only in the 2nd 'column' of a 2D array. array_search
or in_array don't let me narrow down the search for a specific column. How
can I do that ?
--
Guillaume Dargaud
http://www.gdargaud.net/
Navigation:
[Reply to this message]
|