I have a JSON object that I\'m POST\'ING to PHP from ExtJS interface. I get the object from
$json = $_POST[\"newUserInfo\"];
The object wil
If you are using json_decode($json,true);
- true means returning the js objects results as associative arrays - then all you have to do is $user_info = $jsonDecoded['USER'];
without the array()
cast cause that is what json_decode
do for you.
If you would choose to omit the second boolean parameter then you will get an stdClass which $jsonDecoded->USER;
would work for you