02-29-2008, 02:14 AM
|
#1 (permalink)
|
|
The Frequenter
Join Date: Sep 2007
Posts: 360
Thanks: 24
|
SimpleXML
I have the XML attached. I want to access the title of the entry node.
How do i do that?
Currently, I am doing the following to access title in a foreach loop of the XML->entry:
PHP Code:
$title = $value->title[0];
but the values returned are:
PHP Code:
object(SimpleXMLElement)[27]
public '@attributes' =>
array
'type' => string 'text' (length=4)
string 'Red Jumpsuit Apparatus - Face Down' (length=34)
__________________
Necessity is the mother of invention.
My blog
|
|
|
|