Is there a shortcut way to turn an subelement
in a multi-dimensioned array into a regular array.

For example, here's my array:
// print_r($users)

Array
(
    [1] => Array
        (
            [name] => John
            [email] => [EMAIL PROTECTED]
        )

    [2] => Array
        (
            [name] => Chuck
            [email] => [EMAIL PROTECTED]
        )
)

I'd like a quick conversion for the names to
Array
(
    [1] => John
    [2] => Chuck
)

Something like $users[*]['name']

Thanks, John

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to