Skip to content

Instantly share code, notes, and snippets.

@r37r0m0d3l
Created September 12, 2012 10:42
Show Gist options
  • Save r37r0m0d3l/3705868 to your computer and use it in GitHub Desktop.
Save r37r0m0d3l/3705868 to your computer and use it in GitHub Desktop.
String implode wrapped
<?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