下面是 Xml 文件,我需要检索 之间的值<im:name> and </im:name>
,即牙科手术。以及之间的值 <im:image height="75"> and </im:image>
,即 http://a478.phobos.apple.com/.75x75-65.png
<entry>
<im:name>Dental Surgery</im:name>
<im:image height="53">
http://a1962.phobos.apple.com/53x53-50.png
</im:image>
<im:image height="75">
http://a478.phobos.apple.com/.75x75-65.png
</im:image>
<im:image height="100">
http://a683.phobos.apple.com/100x100-75.png
</im:image>
</entry>
我尝试了下面的代码但不起作用
$entry->im->name;