Re: Fast/Easy way to extract a column from multi-dimensional array? [message #176833 is a reply to message #176831] |
Fri, 27 January 2012 20:52 |
Thomas Mlynarczyk
Messages: 131 Registered: September 2010
Karma:
|
Senior Member |
|
|
John Drako schrieb:
> I'm looking for a way to get all the values from the column of a two
> dimensional array.
> RecordID, name, last name, title
> RecordID, name, last name, title
> RecordID, name, last name, title
> RecordID, name, last name, title
> RecordID, name, last name, title
> RecordID, name, last name, title
> etc...
>
> I need to get all the 'RecordID' from the results to reuse in other
> queries.
If it's the first column you're interested in:
array_map( 'current', $array )
Greetings,
Thomas
--
Ce n'est pas parce qu'ils sont nombreux à avoir tort qu'ils ont raison!
(Coluche)
|
|
|