PHPackages                             tebru/filter-null - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. tebru/filter-null

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

tebru/filter-null
=================

Remove all nulls from an array

v0.1.0(10y ago)1353MITPHPPHP &gt;= 5.4

Since May 23Pushed 10y ago1 watchersCompare

[ Source](https://github.com/tebru/filter-null)[ Packagist](https://packagist.org/packages/tebru/filter-null)[ RSS](/packages/tebru-filter-null/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

Filter Null
===========

[](#filter-null)

Simple function to remove null values from an array. This is an improvement over the default functionality of `array_filter` as it only removes null values. Additionally, it works on nested arrays.

Installation
------------

[](#installation)

```
composer require tebru/filter-null

```

Usage
-----

[](#usage)

```
