Advertisement
shmaltorhbooks

Untitled

Jul 5th, 2012
27
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.16 KB | None | 0 0
  1. $result = '';
  2. foreach ($array as $key => $value) {
  3.     $result = $result . $value;
  4.     if (isset($array[$key+1])) {
  5.         $result = $result . ', ';
  6.     }
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement