title: How to read from multi-dimensional arrays in PHP?
body: <p>I'm trying to do something I've never tried before: reading from APIs, and using the returned values in my website. To do this I need to read from multi-dimensional arrays in PHP.</p>
  
  <p>See below the result I am getting from the API callback, when I run the following lines of code:</p>
  
  <pre><code>$tempContents = json_decode($data, true);
  echo '&lt;pre'; print_r($tempContents); echo '&lt;/pre';
  </code></pre>
  
  <p>Results:</p>
  
  <pre><code>Array (
      [data] = Array
      (
          [boards] = Array
          (
              [0] = Array
              (
                  [columns] = Array
                  (
                      [0] = Array
                      (
                          [title] = Name
                      )
                      [1] = Array
                      (
                          [title] = note
                      )
                      [2] = Array
                      (
                          [title] = notes2
                      )
                      [3] = Array
                      (
                          [title] = Status
                      )
                  )
              )
          )
      )
      [account_id] = xxxxxxx 
  )
  </code></pre>
  
  <p>So that's great, I can see the information there; however, I'm not sure about how to construct a foreach function to retrieve individual values. For example; the name of the second title value. </p>