 |
error เรื่องตัดคำหยาบ $msg="พวกมึงเป็นยังไงบ้าง กูสบายดีนะ มึงสบายดีไหม" |
|
 |
|
|
 |
 |
|
อ่ะเอานี่ไปละกาน
function CheckRude($temp){
$wordrude = array(
"ashole","a s h o l e","a.s.h.o.l.e","bitch","b i t c h","b.i.t.c.h","shit","s h i t","s.h.i.t","fuck",
"dick","f u c k","d i c k","f.u.c.k","d.i.c.k","มึง","มึ ง","กู","ควย","ค ว ย","ค.ว.ย",
"คอ วอ ยอ","คอ-วอ-ยอ","ปี้","เหี้ย","เฮี้ย","ชาติหมา","ชาดหมา","ช า ด ห ม า","ช.า.ด.ห.ม.า","ช า ติ ห ม า",
"ช.า.ติ.ห.ม.า","ไอ้","สัดหมา","สัด","เย็ด","หี","สันดาน","แม่ง","ระยำ","ส้นตีน","แตด") ;
$wordchange = ("<font color=\"red\" title=\"คำไม่สุภาพ\" style=\"cursor: hand; border-bottom: 1px dotted #FF0000\">+++</font>") ;
for ( $i=0 ; $i<sizeof($wordrude) ; $i++ ){
$temp = eregi_replace ($wordrude[$i] ,$wordchange ,$temp);
}
return ( $temp ) ;
}
ลองดูดิ.. แจ่วจิง...
|
 |
 |
 |
 |
Date :
7 ม.ค. 2551 12:42:15 |
By :
LITTLE |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|