SplFixedArray::__construct
Constructs a new fixed array
&reftitle.description;
public SplFixedArray::__construct
intsize0
Initializes a fixed array with a number of &null; values equal to size.
&reftitle.parameters;
size
The size of the fixed array.
This expects a number between 0 and PHP_INT_MAX.
&reftitle.returnvalues;
&return.void;
&reftitle.errors;
Throws InvalidArgumentException when size is a negative
number.
Raises E_WARNING when size cannot be parsed as a number.
&reftitle.examples;
SplFixedArray::__construct example
]]>
&example.outputs;