I don't get how that would work... (following example taken from PHP docs)
$entry = array(
0 => 'foo',
1 => false,
2 => -1,
3 => null,
4 => ''
);
print_r(array_filter($entry));
outputs;
Array
(
[0] => foo
[2] => -1
)
and I'm trying to achieve...
Array
(
[0] => foo
[1] => -1
)
I thought there was a function to reset the array keys or something? I can't find it.
I'm close to just looping through and doing it manually...