you got the whole list of objects in comments so give try following:
foreach( $yourObj->stream->comments as $comment){
echo sprintf('%s: %s', $comment->from->name, $comment->message);
}
More Related Contents:
- Loop or no loop? [closed]
- How does PHP ‘foreach’ actually work?
- How can I access an array/object?
- PHP Fatal error: Using $this when not in object context
- What is the best method to merge two PHP objects?
- How do I iterate over the results in a MySQLi result set?
- PHP: Storing ‘objects’ inside the $_SESSION
- Trying to get property of non-object in [duplicate]
- How do you remove an array element in a foreach loop?
- PHP OOP core framework
- PHP read sub-directories and loop through files how to?
- How can I access an object attribute that starts with a number?
- PHP check whether property exists in object or class
- Is it possible to delete an object’s property in PHP?
- PHP hierarchical array – Parents and childs
- Get a PHP object property that is a number [duplicate]
- How to insert an array into a single MySQL Prepared statement w/ PHP and PDO
- Run a PHP script every second using CLI
- FOR loop performance in PHP
- Array to Object and Object to Array in PHP – interesting behaviour
- PHP foreach loop through multidimensional array [duplicate]
- Syntax error while defining an array as a property of a class
- for loop vs while loop vs foreach loop PHP
- How do you pass objects by reference in PHP 5?
- endforeach in loops?
- what is Object Cloning in php?
- looping a SQL insert statement with dates
- How to get the object or class name?
- How to display two table columns per row in php loop
- PHP loop; how to print each result and delay it for a second before echoing another result?