Which is better in PHP? Drew Wilson implies that arrays are hardly worth dealing with if possible: http://code.drewwilson.com/entry/an-introduction-to-json
Would it be wise of me to create all my future web apps with this in mind?
Which is better in PHP? Drew Wilson implies that arrays are hardly worth dealing with if possible: http://code.drewwilson.com/entry/an-introduction-to-json
Would it be wise of me to create all my future web apps with this in mind?
It is better for your to use json because it can hold both it's own key:value object data but also arrays, again all in the same object. Unless you are going to argue about sending arrays of json objects back to the client I suggest to you json is what you should use.