3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $groupViewID = array (1,2,3); $groupIDStr=''; foreach ($groupViewID as $key=>$value) { $groupIDStr=$groupIDStr.$value; if($key!=count($groupViewID)-1) $groupIDStr=$groupIDStr.','; } echo $groupIDStr; ?>
Output for 4.3.0 - 7.2.0
1,2,3