Hi,
What would you guys advise for removing empty entries in an array, and rekeying, but not resorting at all.
array_unique works to some extent but there is still ONE empty entry and it's just on my nerves...
Removing EMPTY or BLANK entries from an array?
Moderator: General Moderators
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
array_filter($array,'strlen') or array_filter($array) depending on what you are actually after.