Building a JSON response in PHP -


how go building json response looks in php? details of

{     "success": 1,     "result": [         {             "id": "293",             "title": "this warning class event",             "url": "http://www.example.com/",             "class": "event-warning",             "start": "1362938400000",             "end": "1363197686300"         },         {             "id": "294",             "title": "this information class ",             "url": "http://www.example.com/",             "class": "event-info",             "start": "1363111200000",             "end": "1363284086400"         }... } 

php provides method

json_encode(); 

used convert jason format


Comments

Popular posts from this blog

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -