I want to remove NULL, FALSE and \'\' values .
NULL
FALSE
\'\'
I used array_filter but it removes the 0\' s also.
array_filter
0
From http://php.net/manual/en/function.array-filter.php#111091 :
If you want to remove NULL, FALSE and Empty Strings, but leave values of 0, you can use strlen as the callback function:
array_filter($array, 'strlen');