src/ArrayLib.php
/**
     * Remove empty elements from the provided array.
     * If the input array is not assosciative, then it will be re-indexed. 0,1,2,3 etc
     * @param array $inputArray - the array to perform actions upon.
     */
Remove empty elements from the provided array.
If the input array is not assosciative, then it will be re-indexed. 0,1,2,3 etc
@param array $inputArray - the array to perform actions upon.
Remove empty elements from the provided array . If the input array is not assosciative then it will be re - indexed . 0 1 2 3 etc @param array $inputArray - the array to perform actions upon .
public static function stripEmptyElements($inputArray)
    {
        $outputArray = array_filter($inputArray);
        if (!self::isAssoc($inputArray))
        {
            $outputArray = array_values($outputArray);
        }
        return $outputArray;
    }
public static function stripEmptyElements ( $ inputArray ) { $ outputArray = array_filter ( $ inputArray ) ; if ( ! self :: isAssoc ( $ inputArray ) ) { $ outputArray = array_values ( $ outputArray ) ; } return $ outputArray ; }
Remove empty elements from the provided array.
Remove empty elements from the provided array .