static of()
The of() static method creates a new, ArrayUtils instance from variadic function arguments
<?php use kim\present\utils\arrays\ArrayUtils;
ArrayUtils::of(3,6,9);
// expected output: ArrayUtils(array(3, 6, 9))Syntax
ArrayUtils::of(mixed ...$elements) : ArrayUtilsParameter
...$elementsElements used to create the array.
Return value
A new
ArrayUtilsinstance.
References
Last updated