682Remove empty array fields in PHP

array_filter($my_array)

array_filter WITHOUT a callback function removes 'false', 'null' and '' fields from an array.