Trait Array_Helper
Trait VSP_Framework_Array_Trait
Direct Known Users
VSP\Helper
Namespace: VSP\Core\Traits
Author: Varun Sridharan varunsridharan23@gmail.com
Located at includes/core/traits/class-array-helper.php
Author: Varun Sridharan varunsridharan23@gmail.com
Located at includes/core/traits/class-array-helper.php
public static
array|boolean
|
|
public static
array
|
#
array_group_by( $items, $group_callback_function )
Groups the elements of an array based on the given function. |
public static
boolean
|
#
array_has_duplicates( $items )
Checks a flat list for duplicate values. Returns true if duplicate values exists and false if values are all unique. |
public static
array|object
|
#
parse_args( array|object $args, array|object $defaults, boolean $deep = false, boolean $preserve_type = true, boolean $preserve_integer_keys = false )
Like wp_parse_args but supports recursivity By default converts the returned type based on the $args and $defaults |
public static
array
|