SimpleXMLIterator::current
Returns the current element
&reftitle.description;
public mixedSimpleXMLIterator::current
This method returns the current element as a SimpleXMLIterator object or &null;.
&reftitle.parameters;
&no.function.parameters;
&reftitle.returnvalues;
Returns the current element as a SimpleXMLIterator object or &null; on failure.
&reftitle.examples;
Return the current element
PHP basicsXML basics');
var_dump($xmlIterator->current());
$xmlIterator->rewind(); // rewind to first element
var_dump($xmlIterator->current());
?>
]]>
&example.outputs;
string(10) "PHP basics"
}
]]>
&reftitle.seealso;
SimpleXMLIterator::key
SimpleXMLIterator::next
SimpleXMLIterator::rewind
SimpleXMLIterator::valid
SimpleXMLElement