我试图了解如何使用Zend_Feed_Rss。根据{{3}},要获取频道的链接,您可以使用$ channel-> link()方法访问该频道。但是当我这样做时,我得到一个数组,并且我想要的实际内容的链接被隐藏在数组的SECOND项中。我究竟做错了什么?文档不是很有用;似乎它希望你只是神奇地弄清楚如何使用这种特殊的方法。此外,我尝试使用谷歌搜索其他资源但无济于事,所以我真的需要一些帮助。
这是我最终获得的数组:
Array
(
[0] => DOMElement Object
(
[tagName] => atom:link
[schemaTypeInfo] =>
[nodeName] => atom:link
[nodeValue] =>
[nodeType] => 1
[parentNode] => (object value omitted)
[childNodes] => (object value omitted)
[firstChild] =>
[lastChild] =>
[previousSibling] => (object value omitted)
[nextSibling] => (object value omitted)
[attributes] => (object value omitted)
[ownerDocument] => (object value omitted)
[namespaceURI] => http://www.w3.org/2005/Atom
[prefix] => atom
[localName] => link
[baseURI] => /path/to/application
[textContent] =>
)
[1] => DOMElement Object
(
[tagName] => link
[schemaTypeInfo] =>
[nodeName] => link
[nodeValue] => http://whatactuallywant.wordpress.com
[nodeType] => 1
[parentNode] => (object value omitted)
[childNodes] => (object value omitted)
[firstChild] => (object value omitted)
[lastChild] => (object value omitted)
[previousSibling] => (object value omitted)
[nextSibling] => (object value omitted)
[attributes] => (object value omitted)
[ownerDocument] => (object value omitted)
[namespaceURI] =>
[prefix] =>
[localName] => link
[baseURI] => /path/to/applicaiton
[textContent] => http://whatactuallywant.wordpress.com
)
[2] => DOMElement Object
(
[tagName] => atom:link
[schemaTypeInfo] =>
[nodeName] => atom:link
[nodeValue] =>
[nodeType] => 1
[parentNode] => (object value omitted)
[childNodes] => (object value omitted)
[firstChild] =>
[lastChild] =>
[previousSibling] => (object value omitted)
[nextSibling] => (object value omitted)
[attributes] => (object value omitted)
[ownerDocument] => (object value omitted)
[namespaceURI] => http://www.w3.org/2005/Atom
[prefix] => atom
[localName] => link
[baseURI] => /path/to/application
[textContent] =>
)
...
)