title: php parsing multiple json arrays
body: <p>i have a json file(below) that contains multiple values, it's abit like this - </p>
  
  <pre><code>-makes
  
     - the make
       - the model
         - year made
         - year made
         - year made
       - the model
         - year made
         - year made
  
      - the make
        - the model
         - year made
  </code></pre>
  
  <p>I can't figure out how to loop through each "make" one by one to get the model and year, Every way iv'e tried so far just seems to produce the make and nothing else.</p>
  
  <p>the output im looking for would look like this(using the snippet below from the full json file)</p>
  
  <pre><code>am general:hummer:1998
  am general:hummer:1999
  acura:CL:1997
  acura:CL:1998
  etc..
  </code></pre>
  
  <p>small snippet of the json file im working with - </p>
  
  <pre><code>  {
   "makes": [
     {
   "name": "AM General",
   "models": [
     {
       "name": "Hummer",
       "years": [
         {
           "year": 1998
         },
         {
           "year": 1999
         }
       ]
     }
   ]
     },
    {
    "name": "Acura",
    "models": [
      {
       "name": "CL",
       "years": [
         {
           "year": 1997
         },
         {
           "year": 1998
         },
         {
           "year": 1999
         }
       ]
     },
     {
       "name": "ILX",
       "years": [
         {
           "year": 2013
         },
         {
           "year": 2014
         },
         {
           "year": 2015
         }
       ]
     },
     {
       "name": "ILX Hybrid",
       "years": [
         {
           "year": 2014
         }
       ]
     }
     ]
     }
   ] 
   }
  </code></pre>