<?php echo preg_replace('/.*\K,/', ' and', 'item 1, item 2, item 3');
You have javascript disabled. You will not be able to edit any code.