Ben aşağıdaki XML dizi var:
["link"]=>
array(2) {
[0]=>
object(SimpleXMLElement)#311 (1) {
["@attributes"]=>
array(3) {
["type"]=>
string(9) "text/html"
["href"]=>
string(48) "http://twitter.com/bob/statuses/1226112723"
["rel"]=>
string(9) "alternate"
}
}
[1]=>
object(SimpleXMLElement)#312 (1) {
["@attributes"]=>
array(3) {
["type"]=>
string(9) "image/png"
["href"]=>
string(59) "http://a3.twimg.com/profile_images/226895523/Dan_normal.png"
["rel"]=>
string(5) "image"
}
}
}
Bu daha büyük bir dizi içeride, ben bir <img> ile <a> bağlantı ve başka olarak bir href koyabilirsiniz böylece seperatly birinci ve ikinci hef niteliğini almak gerekir.
Nasıl çıktı alabilirsiniz her href ziyade birlikte hem daha?
Şu anda bu çalışıyor:
foreach($entry->link as $link) {
echo $link->attributes()->href;
}