Last active
September 6, 2015 03:36
-
-
Save dilab/b7355bcac96ede6dcc6d to your computer and use it in GitHub Desktop.
Implode array, but smart enough to filter out empty values.
This file contains 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
function implode_filter($glue , $pieces) { | |
return implode($glue, array_filter($pieces)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment