0
I’m getting a return from a JSON URL, but I’m not able to recover the answers , I only get the first array and then there’s another array that I’m not able to recover
Code
$json_file = file_get_contents("http://servidor.sys.net/sendsms?username=xxx&password=xxxx&phonenumber=999999999&message=ssssssss");
$json_str = json_decode($json_file, true);
var_dump( $json_str );
This and the return.
array(2) {
["message"]=>
string(8) "ssssssss"
["report"]=>
array(1) {
[0]=>
array(1) {
[1]=>
array(1) {
[0]=>
array(4) {
["port"]=>
string(7) "gsm-2.2"
["phonenumber"]=>
string(11) "999999999"
["time"]=>
string(19) "2017-08-04 07:34:35"
["result"]=>
string(7) "success"
}
}
}
}
}
you’re trying to recover
port
,phonenumber
?– novic
Yeah, I’m gonna need port, phonenumber and result
– Marcos Paulo