2010-11-22 14 views

cevap

2

Sen
böyle

$xml = simplexml_load_string('<users> 
    <user userId="1" userName="nameHere" userAge="34"></user> 
</users>'); 
$userAge = (int) $xml->user->attributes()->userAge; 

olarak, attributes() yöntemine yararlanabilir
İlgili konular