SimpleXMLElement::next
次の要素に移動する
&reftitle.description;
public voidSimpleXMLElement::next
このメソッドは、SimpleXMLElement を次の要素に移動します。
&reftitle.parameters;
&no.function.parameters;
&reftitle.returnvalues;
&return.void;
&reftitle.examples;
次の要素への移動
PHP BasicsXML basics');
$xmlElement->rewind(); // 最初の要素に巻き戻します
$xmlElement->next();
var_dump($xmlElement->current());
?>
]]>
&example.outputs;
string(10) "XML basics"
}
]]>