I dont know what to call this array-looking object. But When I try to access elements in Php, I cant.
{
"message":"authenticated",
"data": {"id":713,"name":"Jamal","email":"[email protected]","role":"user"}
}
I want to access the elements like this. $array['message']=> expecting the outcome to be "authenticated". please help