how to access [name] of first object?

  1. (
  2.     [3] => stdClass Object
  3.         (
  4.             [tid] => 3
  5.             [vid] => 1
  6.             [name] => puppy
  7.             [description] =>
  8.             [weight] => 0
  9.         )
  10.  
  11.     [1] => stdClass Object
  12.         (
  13.             [tid] => 1
  14.             [vid] => 1
  15.             [name] => dog
  16.             [description] =>
  17.             [weight] => 1
  18.         )
  19.  
  20. )