SplFixedArray (class)

The SplFixedArray class

Introduction

(PHP 5 >= 5.3.0, PHP 7)

The SplFixedArray class provides the main functionalities of array. The main differences between a SplFixedArray and a normal PHP array is that the SplFixedArray is of fixed length and allows only integers within the range as indexes. The advantage is that it allows a faster array implementation.

Class synopsis

SplFixedArray implements Iterator , ArrayAccess , 登录查看完整内容