3v4l.org

run code in 150+ 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.1.0
1,2,3