Is there a function that takes a single dimension array and removes any empty/zero/false entries?
Like if I have:
$array[0] = 'thing'
$array[1] = 'stuff'
$array[2] = ''
$array[3] = 'bleah'
And i run some builtin function on that $array... i want it to either return the array with the empty value remove, or alter the actual array itself.
Is there such a function? Basic in its element... but could be seriously helpful (Ive come across a couple times already where I would benefit from it other than doing a for loop through each key=>val and building a new array depending if the val is empty or not... overkill if there is already a built in function for that... ?