W3Cschool
恭喜您成為首批注冊用戶
獲得88經(jīng)驗(yàn)值獎勵
soundex() 函數(shù)計(jì)算字符串的 soundex 鍵。
soundex 鍵是 4 字符長的字母數(shù)字字符串,表示一個單詞的英文發(fā)音。
soundex() 函數(shù)可用于拼寫檢查程序。
注釋:soundex() 函數(shù)為發(fā)音相似的單詞創(chuàng)建相同的鍵。
提示: metaphone() 比 soundex() 函數(shù)更精確,因?yàn)?metaphone() 了解英語發(fā)音的基本規(guī)則。
參數(shù) | 描述 |
---|---|
string | 必需。規(guī)定要檢查的字符串。 |
返回值: | 如果成功則返回字符串的 soundex 鍵,如果失敗則返回 FALSE。 |
---|---|
PHP 版本: | 4+ |
對兩個發(fā)音相似的單詞使用 soundex() 函數(shù):
Copyright©2021 w3cschool編程獅|閩ICP備15016281號-3|閩公網(wǎng)安備35020302033924號
違法和不良信息舉報(bào)電話:173-0602-2364|舉報(bào)郵箱:jubao@eeedong.com
掃描二維碼
下載編程獅App
編程獅公眾號
聯(lián)系方式:
更多建議: