Traq\Controllers\AppController::removeNullValues PHP Method

removeNullValues() protected method

Remove null values from an array.
protected removeNullValues ( array $array )
$array array return array
    protected function removeNullValues(array $array)
    {
        foreach ($array as $key => $value) {
            if ($value === null) {
                unset($array[$key]);
            }
        }
        return $array;
    }