title: trying to get an element from an array in php
body: <p>i have an array after convert it from xml data and i have var_dump the data in array like :</p>
  
  <pre><code>object(SimpleXMLElement)#651 (1) {
    ["authenticationSuccess"]=&gt;
    object(SimpleXMLElement)#652 (1) {
      ["user"]=&gt;
      string(9) "yassine"
    }
  }
  </code></pre>
  
  <p>i want to get the value the attribut user that equal "yassine" in this cas . 
  i trying </p>
  
  <blockquote>
  <pre><code>$xml["authenticationSuccess"]["user"]
  </code></pre>
  </blockquote>
  
  <p>but not working  , it return null value , is there any solution to get this data from the array  .</p>
  
  <p>some help please </p>