lundi 29 août 2016

PHP json_decode returns int(1)

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!

Aucun commentaire:

Enregistrer un commentaire