I need to be able to create a data structure in PHP which creates for instance, an array of car vendors. Each of those arrays, has child arrays which are types of cars for that vendor.
So you'd have something like
$cars['toyota'] = array("camry", "etc");
I need to be able to create this data structure in PHP so that on the JavaScript side of things I can do something like
alert(cars.vendor[0].type[1])
How do I encode that data structure on the PHP end of things?