I would like to print the value of [name]. I am just becoming familiar with standard defined classes and how they are called.
Based on this example and logic
$arrayobj = new ArrayObject(array('first','second','third'));
print_r($arrayobj);
//outputs: ArrayObject Object ( [0] => first [1] => second [2] => third )
With that. I'm trying to extract the value of name (Pebbles) out of here.
print_r($terms);
/* outputs
Array ( [3] => stdClass Object ( [term_id] => 3 [name] => Pebbles ) )
*/
So I tried
echo $terms[0]->name;
Got peanuts. How do I do this?