I want to be able to extract all property values for a property in JSON response, and add resulting values to a string (in PHP) -
i want able extract property values "stid" property in json response, , add together them string (i.e. 1279,1280, etc.) in php.
{ "tickets": { "ticket": { "stid": 1279, "companyid": 1000, "status": 4, "summary": "things broken", "level": 2, "closed": 0, "userid": 34544, "ticketcode": 20130119-1279 } "ticket": { "stid": 1280, "companyid": 1000, "status": 4, "summary": "things broken", "level": 2, "closed": 0, "userid": 34544, "ticketcode": 20130119-1279 } "ticket": { "stid": 1281, "companyid": 1000, "status": 4, "summary": "things broken", "level": 2, "closed": 0, "userid": 34544, "ticketcode": 20130119-1279 } "ticket": { "stid": 1282, "companyid": 1000, "status": 4, "summary": "things broken", "level": 2, "closed": 0, "userid": 34544, "ticketcode": 20130119-1279 } }
php json
No comments:
Post a Comment