read name of parameter with SimpleXML

mohdismail

New Member
I have this form given:\[code\]<item><parameter name="a">3</parameter></item>\[/code\]Is it possible to read the "a" with SimpleXML?I have already tried $xml->item->parameter->getName(); but it only returns "parameter".Thanks in advance.
 
Back
Top