3
Well I have the following array inside a variable $resultado
:
{"result":[{"fone":"","email":"","id":1,"nome":"GERAL","token":"BE5DEA91EB28E98F053466E98082908545E3DCA5"}]}
I need to retrieve the token.
I tried that way, but it didn’t work:
$resultado[4]
But he’s returning me s
That’s a json, need a json_decode then yes access the desired key.
– rray
@Sergio made the following mistake
Notice: Use of undefined constant result - assumed 'result' in C:\xampp\htdocs\Backup.php on line 44

Notice: Use of undefined constant token - assumed 'token' in C:\xampp\htdocs\Backup.php on line 44
{"result":[{"fone":"","email":"","id":1,"nome":"GERAL","token":"BE5DEA91EB28E98F053466E98082908545E3DCA5"}]}rtoken
– Hugo Borges