PHP multi dimensional array manipulation

Posted by atif089 on Stack Overflow See other posts from Stack Overflow or by atif089
Published on 2010-05-30T15:20:55Z Indexed on 2010/05/30 15:32 UTC
Read the original article Hit count: 321

Filed under:
|

Hi,

This is my array

Array
(
    [0] => Array
        (
            [sample_id] => 3
            [time] => 2010-05-30 21:11:47
        )

    [1] => Array
        (
            [sample_id] => 2
            [time] => 2010-05-30 21:11:47
        )

    [2] => Array
        (
            [sample_id] => 1
            [time] => 2010-05-30 21:11:47
        )
)

And I want to get all the sample_ids in one array. can someone please help ?

Can this be done without for loops (because arrays are very large).

© Stack Overflow or respective owner

Related posts about php

Related posts about multidimensional-array