I have an array that looks like this:
$array = array("a", "b", 0, "c", 0);
How can I remove all elements with 0 and shift the index of the remaining elements?
I want the result to be like this:
Array ( [0] => a [1] => b [2] => c )
I tried this but it didn't work:
array_diff($bal_units, array(0));