ShivaGupta Posted December 4, 2014 Share Posted December 4, 2014 (edited) $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 Edited December 4, 2014 by ShivaGupta Quote Link to comment 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; 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.