How would I get the value of the login string and password inside a json_decode? What happens is that when I bring the result of a curl:
$obj = json_decode($output);
The following message appears:
Your access data is: login: xxxxx and password: YYYY
I tried to log in as follows:
list($mensagem,$login) = explode("login:",$obj->info->cidade[0]->dados[0]->mensagem);
But it returns:
xxxxx and password: YYYY
You should only get the XXXXX for the login and YYYY for the password.