วันอาทิตย์ที่ 11 พฤษภาคม พ.ศ. 2557

20:04
ฟังก์ชัน metaphone()
สร้าง metaphone key ด้วยฟังก์ชัน metaphone()

 
metaphone key คือ ตัวอักษรแทนการออกเสียงของคำ
รูปแบบ
metaphone(string , length)

string คือ สตริง

length คือ ความยาวของตัวอักษรที่ต้องการ ค่า default คือไม่จำกัด


ตัวอย่าง
<?php

echo metaphone("world");

?>

ผลลัพธ์WRLT

0 ความคิดเห็น:

แสดงความคิดเห็น

:) :)) ;(( :-) =)) ;( ;-( :d :-d @-) :p :o :>) (o) [-( :-? (p) :-s (m) 8-) :-t :-b b-( :-# =p~ $-) (b) (f) x-) (k) (h) (c) cheer
Click to see the code!
To insert emoticon you must added at least one space before the code.