Skip to content

Instantly share code, notes, and snippets.

@lutzissler
Created August 7, 2013 09:26
Show Gist options
  • Save lutzissler/6172565 to your computer and use it in GitHub Desktop.
Save lutzissler/6172565 to your computer and use it in GitHub Desktop.
Smarty function to convert a list of arguments into a delimited output. Usage: {", "|listify:"Item 1":"Item 2":"Item 3"}
function listify($delimiter) {
return implode($delimiter, array_filter(array_slice(func_get_args(), 1)));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment