I am having a multidimensional array like this:
Array
(
    [0] => stdClass Object
        (
            [id] => 12
            [userid] => 001
        )
    [1] => stdClass Object
        (
            [id] => 13                
            [userid] => 002
        )
)
I want to display the userid values from both like "001, 002" as a string with comma separated.