PHP » GoLang |
login |
register |
about
|
GoLang SplFixedArray::fromArray
request it (337)
GoLang replacement for PHP's SplFixedArray::fromArray
[edit | history]
SplFixedArray::fromArray(PHP 5 >= 5.3.0, PHP 7) SplFixedArray::fromArray — Import a PHP array in a SplFixedArray instance Description
public static SplFixedArray SplFixedArray::fromArray
( array
$array
[, bool $save_indexes = TRUE
] )
Import the PHP array Parameters
Return ValuesReturns an instance of SplFixedArray containing the array content. Examples
Example #1 SplFixedArray::fromArray() example
<?php The above example will output: object(SplFixedArray)#1 (4) { [0]=> int(2) [1]=> int(1) [2]=> NULL [3]=> int(3) } object(SplFixedArray)#2 (3) { [0]=> int(1) [1]=> int(2) [2]=> int(3) } |
more
Recently updated
more
Most requested
more
Last requests
|