<?php
$arr = array('john', 'Cyrax', 'john', 'Sonia', 'Sector');
$str = implode(', ',$arr);
$str = substr_replace($str, ' e', strrpos($str,','), 1);
echo $str;

