SplObjectStorage::key(PHP 5 >= 5.1.0) SplObjectStorage::key — Returns the index at which the iterator currently is Описание
public int SplObjectStorage::key
( void
)
Returns the index at which the iterator currently is. Список параметровУ этой функции нет параметров. Возвращаемые значенияThe index corresponding to the position of the iterator. Примеры
Пример #1 SplObjectStorage::key() example
<?phpРезультатом выполнения данного примера будет что-то подобное:
int(0)
object(stdClass)#2 (0) {
}
int(1)
object(stdClass)#3 (0) {
}
Смотрите также
|
||