SimpleXMLIterator::keyReturn current key Beschreibung
public mixed SimpleXMLIterator::key
( void
)
This method gets the XML tag name of the current element. Parameter-ListeDiese Funktion hat keine Parameter. Rückgabewerte
Returns the XML tag name of the element referenced by the current SimpleXMLIterator object or Beispiele
Beispiel #1 Get the current XML tag key
<?phpDas oben gezeigte Beispiel erzeugt folgende Ausgabe: bool(false) string(4) "book" |