📖How to use?
#️⃣Importing ArrayUtils
use kim\present\utils\arrays\ArrayUtils;#️⃣Create ArrayUtils from value
⚡ 1. Use constructor
$arr = new ArrayUtils([1,2,3,4,5]); echo $arr->join(", "); //1, 2, 3, 4, 5
⚡ 2. Use static from() method
$arr = ArrayUtils::from([1,2,3,4,5]); echo $arr->join(", "); //1, 2, 3, 4, 5
⚡ 3. Use static of() method
⚡ 4. Use magic suffix "From"
#️⃣Use the desired methods
📖MethodsLast updated