I have an object (stored as $videos) that looks like this
object(stdClass)#19 (3) { [0]=> object(stdClass)#20 (22) { [\"id\"]=> string(1) \
You could loop on the object maybe and break in the first loop... Something like
foreach($obj as $prop) { $first_prop = $prop; break; // exits the foreach loop }