📖How to use?
The guide assumes intermediate level knowledge of PHP-language and poggit-virion
The easiest way to try out ArrayUtils is using the poggit. Poggit automatically merges virions, it is better to use this feature.
#️⃣Importing ArrayUtils
As with all classes, must import ArrayUtils into your php file.
#️⃣Create ArrayUtils from value
There are 4 ways to create ArrayUtils.
⚡ 1. Use constructor
In the most basic way, it's just created through the constructor.
⚡ 2. Use static from() method
Same method as
Array.from()
in java script
⚡ 3. Use static of() method
Same method as
Array.of()
in java script
⚡ 4. Use magic suffix "From"
For a detailed description of the
from-suffix
, click hereAll methods can be called statically with the suffix
From
#️⃣Use the desired methods
📖MethodsLast updated