Signatur
class SplFixedArray implements Iterator, ArrayAccess, Countable
Beschreibung
Kein assoziativer Zugriff, keine String-Keys. Für hunderttausende Elemente kann das massiv RAM sparen.
Rückgabewert
Typ
SplFixedArray
Beschreibung
Instanz.
Beispiele
Fixed-Size
<?php
$arr = new SplFixedArray(1_000_000);
$arr[0] = 'a';
$arr[999999] = 'z';