ShivaGupta Posted December 4, 2014 Share Posted December 4, 2014 $m=json_decode($html); print_r($m); stdClass Object ( [requestGuid] => [orderId] => [statusCode] => SUCCESS [statusMessage] => SUCCESS [response] => stdClass Object ( [amount] => 100 [currencyCode] => INR [status] => 1 [message] => ACTIVE [ownerGuid] => 7898980 [walletType] => USER [ssoId] => 9op09 [txnPinRequired] => [otpPinRequired] => ) [metadata] => ) this is json decoded object and want to get property of amount .plz help me Link to comment https://forums.phpfreaks.com/topic/292881-plz-help-with-json-decoded-object/ Share on other sites More sharing options...
Barand Posted December 4, 2014 Share Posted December 4, 2014 A few line breaks would have helped (use print_r() between <pre>..</pre> tags ) or use var_export() which produces useable code. It looks like you want $m->response->amount; Link to comment https://forums.phpfreaks.com/topic/292881-plz-help-with-json-decoded-object/#findComment-1498457 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.