basic JSON pulling data help..

Posted by Webby on Stack Overflow See other posts from Stack Overflow or by Webby
Published on 2010-06-03T01:38:06Z Indexed on 2010/06/03 1:44 UTC
Read the original article Hit count: 249

Filed under:
|

New to json data and struggling i guess the answer is real easy but been bugging me for the last hour..

Sample data

    {
   "data": 
      {
         "userid": "17",
         "dates": {
            "timestame": "1275528578",
                  },
         "username": "harino54",

      }

}

Ok I can pull userid or username easy enough with

echo "$t->userid" or echo "$t->username "

but how do I pull data from the brackets within ? in this case timestame?

cant seem to figure it out..

any ideas?

© Stack Overflow or respective owner

Related posts about php

Related posts about JSON