title: How to take xml variation for php
body: <p>I have a xml. I take all data but I need some value.</p>
  
  <pre><code> &lt;stock&gt;
   &lt;Ozellik isim="color"&gt;Black&lt;/Ozellik&gt;
  
   &lt;Ozellik isim="size"&gt;Standart Size&lt;/Ozellik&gt;
   &lt;/stock&gt;
  </code></pre>
  
  <p>I write this code </p>
  
  <pre><code>$varozellik[$r] = $Urun-&gt;Stoklar-&gt;Stok[$i]-&gt;Ozellik[$r]
  </code></pre>
  
  <p>and turn back to me only - Black 
                             Standart Size</p>
  
  <p>But I need color or size? How to take ?</p>
  
  <p>Thank you</p>