亚洲区国产区激情区无码区,国产成人mv视频在线观看,国产A毛片AAAAAA,亚洲精品国产首次亮相在线

PHP 菜鳥教程

PHP 高級(jí)教程

PHP & MySQL

PHP 參考手冊(cè)

PHP soundex() 函數(shù)用法及示例

    PHP String 字符串函數(shù)手冊(cè)

    soundex()函數(shù)用于計(jì)算字符串的 soundex 鍵。

語(yǔ)法

string soundex ( string $str )

定義和用法

用于計(jì)算字符串的 soundex 鍵。

soundex 鍵是 4 字符長(zhǎng)的字母數(shù)字字符串,表示一個(gè)單詞的英文發(fā)音。

soundex() 函數(shù)可用于拼寫檢查程序。

注意:soundex() 函數(shù)為發(fā)音相似的單詞創(chuàng)建相同的鍵。

提示: metaphone() 比 soundex() 函數(shù)更精確,因?yàn)?metaphone() 了解英語(yǔ)發(fā)音的基本規(guī)則。

返回值

它以字符串形式返回 soundex 鍵

參數(shù)

序號(hào)參數(shù)與說(shuō)明
1

string

輸入字符串

在線示例

試試下面的實(shí)例,計(jì)算字符串 (cainiaoplus.com) 的Soundex 鍵:

<?php
   //計(jì)算字符串 (cainiaoplus.com) 的Soundex 鍵。
   $input = "(cainiaoplus.com)";
   echo soundex($input);
?>
測(cè)試看看?/?

輸出結(jié)果

N250

PHP String 字符串函數(shù)手冊(cè)