The Sequence interface
(PECL ds >= 1.0.0)
Introduction
A Sequence describes the behaviour of values arranged in a single, linear dimension.
Some languages refer to this as a "List". It’s similar to an array that uses
incremental integer keys, with the exception of a few characteristics:
- Values will always be indexed as [0, 1, 2, ..., size - 1].
- Only allowed to access values by index in the range [0, size - 1].
Use cases:
Interface synopsis
/* Methods */
/* Inherited methods */
}
Changelog
Version |
Description |
PECL ds 1.3.0 |
The interface now extends ArrayAccess .
|
Table of Contents
There are no user contributed notes for this page.