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

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -