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))
ArrayUtils::of(mixed ...$elements) : ArrayUtils
...$elements
Elements used to create the array.
A new ArrayUtils instance.
ArrayUtils
Last updated 5 years ago