Reputation: 89
I'm having some trouble accessing a json string - Demo Link
//PHP CODE
$json = curl_exec($ch);
$json = json_decode($json, true);
var_dump($json);
// RESULTS
@{"error":"Bank account validation failed.","error_type":null,"code":400}
int(1)
Any help would be highly appreciated!
Upvotes: 5
Views: 3469
Reputation: 320
curl_exec($ch)
Returns TRUE on success or FALSE on failure. However, if the CURLOPT_RETURNTRANSFER option is set, it will return the result on success, FALSE on failure.
Upvotes: 4