Skip to content

Instantly share code, notes, and snippets.

@ptrnov
Last active February 20, 2017 10:03
Show Gist options
  • Select an option

  • Save ptrnov/84ca646c9280303f7ed3 to your computer and use it in GitHub Desktop.

Select an option

Save ptrnov/84ca646c9280303f7ed3 to your computer and use it in GitHub Desktop.
Catatan
// make a comma delimited list
$string = join(',', $array);
Or loop yourself:
$string = '';
foreach ($array as $key => $value) {
$string .= ",$value";
}
$string = substr($string, 1); // remove leading ","
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment