I am making a SOAP request in PHP. As a result, it is possible to return XML or JSON. I decided to use JSON because I am familiar with json_decode. With json_decode, if the parameter "true" is added, it returns an associative array without it; the default is Object.
This is for train schedules. This is a station that includes trips and stops. How did I decide in my PHP application that I am writing if I should consider the schedule data at the station as an object or an associative array? What will be the decisive factor? What are the pros and cons?
source share