(PHP 5 >= 5.3.0, PHP 7)
SplFixedArray::fromArray — Import a PHP array in a SplFixedArray instance
public static SplFixedArray::fromArray ( array $array [, bool $save_indexes = true ] ) : SplFixedArray
Import the PHP array array
in a new SplFixedArray instance
array
The array to import.
save_indexes
Try to save the numeric indexes used in the original array.
Returns an instance of SplFixedArray containing the array content.
© 1997–2020 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/splfixedarray.fromarray.php