Getting a little tripped up here. Basically I want to access only the -1 from the following.
Code
$url = "...";
$lines_string=file_get_contents($url);
$jObj = json_decode($lines_string, true);
var_dump($jObj);
Resulting in:
Code
array(1) { ["result"]=> array(1) { [0]=> array(1) { ["id_login"]=> string(2) "-1" } } }
What I have tried.
echo $jObj[0]->id_login;
echo $jObj[0]['id_login'];
Any help appreciated.