Would somebody explain how array_filter filters this array.
Posted: Fri Oct 20, 2006 7:26 am
This is a copy and paste from the function on uk.php.net.
I'm not understanding why it's filtering elements 1, 3 & 4
Could somebody point this out please?
Stephen,
Code: Select all
array_filterI'm not understanding why it's filtering elements 1, 3 & 4
Code: Select all
$entry = array(
0 => 'foo',
1 => false,
2 => -1,
3 => null,
4 => ''
);
print_r(array_filter($entry));Stephen,