fork(4) download
  1. <?php
  2. $arr = array('john', 'Cyrax', 'john', 'Sonia', 'Sector');
  3. $str = implode(', ',$arr);
  4. $str = substr_replace($str, ' e', strrpos($str,','), 1);
  5. echo $str;
  6.  
  7.  
Success #stdin #stdout 0.02s 24448KB
stdin
Standard input is empty
stdout
john, Cyrax, john, Sonia e Sector