I would like to print some items from this array. If, for example, I want to print disc_title for each item in the array
how would that be done using a foreach?
Could I refer to an item in the array like this: $user_arr[0][1]['artist'] ? All I get are blank results.
I've spent most of the day trying to figure this out so I guess it's time to ask for help. Could not find any on-line examples that were useful to me.
Array ( [0] => [1] => stdClass Object ( [artist] => ROLLING STONES [disc_title] => STICKY FINGERS [disc_catno] => UIGY-9066 [upc] => 4988005659187 [label_name] => Universal International [qty] => 1 [format] => ss [disc_seq] => 2449 [copyright] => 2011 ) [2] => stdClass Object ( [artist] => ROLLING STONES [disc_title] => STICKY FINGERS [disc_catno] => RSR 59100-A [upc] => [label_name] => Rolling Stones Records [qty] => 1 [format] => tp [disc_seq] => 2637 [copyright] => 1971 ) )