$userinfo = {"userdata":{"usertarget":{"id":12345,"name":"John Doe","status":"user"}}}
for example, that was the result i got and call it as userinfo
, and now how can i find the specific word from userinfo
such as like "name":"John Doe"
and then echo
it
like
$userinfo = {"userdata":{"usertarget":{"id":12345,"name":"John Doe","status":"user"}}}
$find = ... //find "name":"John Doe" from $userinfo
echo $find;