php print array of object in php code example Example: print array on php foreach($results['data'] as $result) { echo $result['type'], '<br>'; }