Created
June 10, 2014 09:58
-
-
Save 2dpi/6a82181a4b223be7ecb4 to your computer and use it in GitHub Desktop.
PHP: array reset key values and filter empty
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// RESET KEY VALUES TO START FORM 0 AND REMOVE EMPTY/NULL ENTRIES | |
$array =array_values(array_filter($array)); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment