Skip to content

Instantly share code, notes, and snippets.

@kcliu
Created May 13, 2013 11:02
Show Gist options
  • Save kcliu/5567573 to your computer and use it in GitHub Desktop.
Save kcliu/5567573 to your computer and use it in GitHub Desktop.
$entry[0] = array(
0 => 'foo',
1 => false,
2 => -1,
3 => null,
4 => ''
);
$entry[1] = '';
$entry[2] = array(
0 => '',
1 => false,
2 => '\n',
3 => null,
4 => ''
);
$array = array_filter($entry);
print_r($entry);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment