我想要一个PHP脚本来获取HTML代码中的所有图像并列出它.任何人都可以帮助我这样做,或者我应该如何进行一些想法?我是新手,所以任何帮助将不胜感激.
我有一个simpleXml对象,并希望从对象中读取数据,我是PHP的新手,并不知道如何做到这一点.对象细节如下.
我需要阅读[描述]和[小时].谢谢.
SimpleXMLElement Object (
[@attributes] => Array (
[type] => array
)
[time-entry] => Array (
[0] => SimpleXMLElement Object (
[date] => 2010-01-26
[description] => TCDM1 data management: sort & upload
[hours] => 1.0
[id] => 21753865
[person-id] => 350501
[project-id] => 4287373
[todo-item-id] => SimpleXMLElement Object (
[@attributes] => Array (
[type] => integer
[nil] => true
)
)
)
[1] => SimpleXMLElement Object (
[date] => 2010-01-27
[description] => PDCH1: HTML
[hours] => 0.25
[id] => …Run Code Online (Sandbox Code Playgroud)