title: Echoing out everything in Multi-dimensional Array
body: <p>Ok, so I'm trying to get the hang of multidimensional arrays, I know what they are and what they do.</p>
  
  <p>In the example below I have created (probably not the most efficient way) a <code>Cars array</code>.</p>
  
  <p>In this array I have two other variables that contain arrays, one for the model and one for the colour.</p>
  
  <p>The result I'm looking for is to echo out all the models and colours for each car car. </p>
  
  <p>For example</p>
  
  <blockquote>
    <p>Bmw Red Saloon, Bmw Red Hatchback, Bmw Red Estate, Bmw Green Saloon,
    Bmw Green Hatchback etc etc.</p>
  </blockquote>
  
  <p>So far in the following code I can get the make of the cars but then it echoes array array.</p>
  
  <pre><code>&lt;?php 
  $colours = array("red","green","blue");
  $models = array("hatchback","saloon","estate");
  $cars= array(
          array("Bmw",$colours,$models),
          array("Volvo",$colours,$models),
          array("VW",$colours,$models),
          array("Mercedes",$colours,$models)
      );
  foreach ($cars as $innerArray){
      foreach ($innerArray as $value) {
          echo $value . '&lt;br/&gt;';
      }
  }
  ?&gt;
  </code></pre>
  
  <p>I know the foreach statement is wrong but that's where I'm stuck. If you could help me out or even better explain the logic behind it, that would be awesome! </p>