nadeeshan Posted October 25, 2012 Share Posted October 25, 2012 I have a php function and I am getting following output when I print it using print_r($result); I need to echo some values separately. I unable to get them as an array. Please help me to do it. stdClass Object ( [result] => stdClass Object ( [accountStatus] => 0 [accountType] => IN [appId] => SONG [dateTime] => 2012-10-25 12:57:41 [domainID] => ABC [transResult] => 0 [transactionID] => 5985 [limits] => 15.52 [amount] => 0 ) ) Ex: I need to get the limits value separately. Thank you. Link to comment https://forums.phpfreaks.com/topic/269890-need-to-echo-some-values/ Share on other sites More sharing options...
Barand Posted October 25, 2012 Share Posted October 25, 2012 $limits = $result->limits; Link to comment https://forums.phpfreaks.com/topic/269890-need-to-echo-some-values/#findComment-1387633 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.