略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: IntlIterator

2024-11-13

The IntlIterator class

(PHP 5 >= 5.5.0, PHP 7, PHP 8)

简介

This class represents iterator objects throughout the intl extension whenever the iterator cannot be identified with any other object provided by the extension. The distinct iterator object used internally by the foreach construct can only be obtained (in the relevant part here) from objects, so objects of this class serve the purpose of providing the hook through which this internal object can be obtained. As a convenience, this class also implements the Iterator interface, allowing the collection of values to be navigated using the methods defined in that interface. Both these methods and the internal iterator objects provided to foreach are backed by the same state (e.g. the position of the iterator and its current value).

Subclasses may provide richer functionality.

类摘要

class IntlIterator implements Iterator {
/* 方法 */
public current(): mixed
public key(): mixed
public next(): void
public rewind(): void
public valid(): bool
}

目录

add a noteadd a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/class.intliterator.php

冷却塔厂家 广告
-- --
北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3