Created
September 12, 2012 10:42
-
-
Save r37r0m0d3l/3705868 to your computer and use it in GitHub Desktop.
String implode wrapped
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
<?php | |
function str_implode_wrapped($before, $after, $array, $glue = '') | |
{ | |
return $before.implode($after.$glue.$before, $array).$after; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment