title: Nested Arrays PHP
body: <p>Im struggling with displaying the country_name, country_prefix followed by the city_name and city_prefix to display in PHP</p>
  
  <pre><code>Array (
      [0] =&gt; stdClass Object
          (
              [country_name] =&gt; Russian Federation
              [country_prefix] =&gt; 7
              [country_iso] =&gt; RU 
              [cities] =&gt; Array
                  (
                      [0] =&gt; stdClass Object
                          (
                              [city_id] =&gt; 107
                              [city_name] =&gt; Moscow
                              [city_prefix] =&gt; 495
                              [city_nxx_prefix] =&gt; 
                              [setup] =&gt; 0
                              [monthly] =&gt; 60.9
                              [isavailable] =&gt; 1
                              [islnrrequired] =&gt; 0
                          )
                      ...
  </code></pre>
  
  <p>This above returns the $results array and Im currently using something like this but have tried many iterations.</p>
  
  <pre><code>echo '&lt;br /&gt;Results: &lt;br /&gt;';
  foreach($result as $countries =&gt; $country) {
          foreach($country as $details =&gt; $value) {
          echo $value . "&lt;br/&gt;";
          }
  }
  </code></pre>