Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $result = '';
- foreach ($array as $key => $value) {
- $result = $result . $value;
- if (isset($array[$key+1])) {
- $result = $result . ', ';
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement