"; if($pos==0) { $string=$string.$temp."way"; } else { $string=$string.$temp."ay"; } echo $string; ?>