\Omega\Support Arr

Arr class.

The 'Arr' class offers a comprehensive set of static methods for array manipulation and handling. This utility class provides functionalities for common array operations such as sorting, filtering, merging, mapping, and searching. By encapsulating these functionalities within a single class, 'Arr' simplifies array processing tasks and promotes code reusability. Developers can leverage the methods provided by 'Arr' to efficiently work with arrays in their applications, improving productivity, maintainability, and overall code organization.

Summary

Methods
Properties
Constants
wrap
No public properties found
No public constants found
No protected methods found
No protected properties found
No protected constants found
No private methods found
No private properties found
No private constants found

Methods

wrap()

wrap(mixed  $value) : array

If the given value is not an array and not null, wrap it in a single value.

Parameters

mixed $value

Holds the value to check.

Returns

array —

Return the wrapped array.