- Jun 16, 2010
- 992
- 131
Hi, I am using this $json = json_decode($resp); where $resp is my result from a CURL api connection.
Then I use this print_r($json->Bin[0]);
which on a webpage will return
stdClass Object ( [JSON_F52E2B61-18A1-11d1-B105] => {"Bin":542418,"Brand":"MASTERCARD","Bank":"CITIBANK N.A.","Type":"CREDIT","Category":"PLATINUM","IsoCountry":"UNITED STATES","Isoa2":"US","Isoa3":"USA","Isonumber":840} )
My question is how do I print/echo out ONLY the "Category" part from the stdClass Object?
Then I use this print_r($json->Bin[0]);
which on a webpage will return
stdClass Object ( [JSON_F52E2B61-18A1-11d1-B105] => {"Bin":542418,"Brand":"MASTERCARD","Bank":"CITIBANK N.A.","Type":"CREDIT","Category":"PLATINUM","IsoCountry":"UNITED STATES","Isoa2":"US","Isoa3":"USA","Isonumber":840} )
My question is how do I print/echo out ONLY the "Category" part from the stdClass Object?