title: Foreach loop Multidimensional Array
body: <p>I am working with an multidimensional array which I am receiving from a third party source so can not change the layout of it. Its for a collge and I want to loop the module names but not the ID's.</p>
  
  <p>When using this foreachloop</p>
  
  <pre><code>&lt;?php echo "&lt;ul&gt;";
                  foreach($array['Course']['Modules']['Module'] as $key =&gt; $value)
                  {
                      foreach($value as $keys =&gt; $values)
                      {
                          echo "&lt;li&gt;";
                              foreach($values as $thirdkey =&gt; $thirdvalues)
                              {
                              echo $thirdvalues . " " ;
                              }
                          echo "&lt;/li&gt;";
                  }
                      }
                  echo "&lt;/ul&gt;"
              ?&gt;
  </code></pre>
  
  <p>I get the following which is fine but I don't need the moduleID:</p>
  
  <pre><code>003646 T.I.G. WELDING ALUMINIMUM INTERMEDIATE
  003644 T.I.G. WELDING STAINLESS STEEL INTERMEDIATE
  003633 MIG WELDING INTERMEDIATE
  003552 MANUAL METAL ARC WELDING INTERMEDIATE
  000016 MOUNTING OF ABRASIVE WHEELS
  003299 MACHINE TOOLS (WELDING)
  000001 INDUCTION
  000002 CAREER PLANNING AND JOB SEEKING SKILLS
  000029 OXY-ACETYLENE CUTTING
  003757 THEORY OF WELDING
  000003 IN-COMPANY
  000664 SAFEPASS
  </code></pre>
  
  <p>This is my array, can anyone help me return just the Module Title???
  Array</p>
  
  <pre><code>([Certification] =&gt; IT Systems Support - PC Maintenance (L1)
   [Modules] =&gt; Array
              (
                  [Module] =&gt; Array
                      (
                          [0] =&gt; Array
                              (
                                  [@attributes] =&gt; Array
                                      (
                                          [ModuleID] =&gt; 004839
                                          [Title] =&gt; IT SYSTEMS SUPPORT- PC MAINTENANCE
                                      )
  
                              )
  
                          [1] =&gt; Array
                              (
                                  [@attributes] =&gt; Array
                                      (
                                          [ModuleID] =&gt; 007685
                                          [Title] =&gt; COMPTIA A+ - 220 801
                                      )
  
                              )
  
                          [2] =&gt; Array
                              (
                                  [@attributes] =&gt; Array
                                      (
                                          [ModuleID] =&gt; 007684
                                          [Title] =&gt; COMPTIA A+ - 220-802
                                      )
  
                              )
  
                          [3] =&gt; Array
                              (
                                  [@attributes] =&gt; Array
                                      (
                                          [ModuleID] =&gt; 004757
                                          [Title] =&gt; PREPARING FOR WORK
                                      )
  
                              )
  
                      )
  
              )
  
      )
  </code></pre>
  
  <p>Thank in advance :)</p>