title: PHP XML and nodes with same name
body: <p>I am having some difficulty wrapping my brain around this, since I am new to PHP.</p>
  
  <p>XML Document contains:</p>
  
  <pre><code>&lt;containerDetails&gt;
      &lt;ID&gt; theid &lt;/id&gt;
       &lt;OwnerDetails id = 23212&gt;
            &lt;name&gt; the name &lt;/name&gt;
       &lt;/OwnerDetails&gt;
       &lt;OtherData&gt; 
             asdfdsa
       &lt;/OtherData&gt;
  &lt;/containerDetails&gt;
  </code></pre>
  
  <p>And I can access The Owner Name via <code>$current["OwnerDetails"]["Name"]</code> ok</p>
  
  <p>However sometimes there are multiple ownerdetails:</p>
  
  <pre><code>&lt;containerDetails&gt;
      &lt;ID&gt; theid &lt;/id&gt;
       &lt;OwnerDetails id = 23212&gt;
            &lt;name&gt; the name &lt;/name&gt;
       &lt;/OwnerDetails&gt;
       &lt;OwnerDetails id = 23233&gt;
            &lt;name&gt; other name &lt;/name&gt;
       &lt;/OwnerDetails&gt;
       &lt;OtherData&gt; 
             asdfdsa
       &lt;/OtherData&gt;
  &lt;/containerDetails&gt;
  </code></pre>
  
  <p>I can use a</p>
  
  <pre><code>foreach($current["OwnerDetails"] as $row) 
      echo $row["Name"]
  </code></pre>
  
  <p>and I see both names.  But if there is only ONE OwnerDetails it won't display the name correctly....  How Do I reliably access this data even if I don't know if there will be one or multiple items?</p>