|
SplObjectStorage::keyReturns the index at which the iterator currently is Beschreibung
public int SplObjectStorage::key
( void
)
Returns the index at which the iterator currently is. Parameter-ListeDiese Funktion hat keine Parameter. RückgabewerteThe index corresponding to the position of the iterator. Beispiele
Beispiel #1 SplObjectStorage::key example
<?phpDas oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie:
int(0)
object(stdClass)#2 (0) {
}
int(1)
object(stdClass)#3 (0) {
}
Siehe auch
|