jasonabuck Posted September 24, 2009 Share Posted September 24, 2009 $queryResult = new QueryResult($response); $objContacts = (object)$queryResult; echo '<pre>'.print_r($objContacts, true).'</pre>'; How do I echo the indivdual keys. For example, how do I get the LastName to echo. QueryResult Object ( [queryLocator] => [done] => 1 [records] => Array ( [0] => SObject Object ( [type] => Contact [fields] => stdClass Object ( [LastName] => Buck [FirstName] => Jason => [email protected] ) [id] => 0035000000QgtjRAAR ) ) => 1 ) // for some reason the post is moving infront of the => Link to comment https://forums.phpfreaks.com/topic/175421-php-object-and-return-items-from-inside-object/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.