str_replace(ค่าที่เราต้องการให้แทนที่,แทนที่ด้วยอะไร,ข้อความที่ต้องการแทนที่)
example
โค้ด: เลือกทั้งหมด
<?php
$name = array('off','auttachai','sutee','sune');
$re = array("a", "e", "i", "o", "u", "A", "E", "I", "O", "U");
$show = str_replace($re," ","auttachai");
echo $show;
?>