成人精品一区二区三区中文字幕-成人精品一区二区三区-成人精品一级毛片-成人精品亚洲-日本在线视频一区二区-日本在线视频免费

導航首頁 ? 技術教程 ? PHP字符串函數soundex()的用法
全站頭部文字 我要出現在這里
PHP字符串函數soundex()的用法 720 2023-12-12   

soundex

(PHP 4, PHP 5)

soundex — Calculate the soundex key of a string

說明

string soundex ( string $str )

Calculates the soundex key of str.

Soundex keys have the property that words pronounced similarly produce the same soundex key, and can thus be used to simplify searches in databases where you know the pronunciation but not the spelling. This soundex function returns a string 4 characters long, starting with a letter.

This particular soundex function is one described by Donald Knuth in "The Art Of Computer Programming, vol. 3: Sorting And Searching", Addison-Wesley (1973), pp. 391-392.

參數

str

The input string.

返回值

Returns the soundex key as a string.

范例

Example #1 Soundex Examples

<?php
soundex("Euler")       == soundex("Ellery");    // E460
soundex("Gauss")       == soundex("Ghosh");     // G200
soundex("Hilbert")     == soundex("Heilbronn"); // H416
soundex("Knuth")       == soundex("Kant");      // K530
soundex("Lloyd")       == soundex("Ladd");      // L300
soundex("Lukasiewicz") == soundex("Lissajous"); // L222
?>

參見

levenshtein() - 計算兩個字符串之間的編輯距離 metaphone() - Calculate the metaphone key of a string similar_text() - 計算兩個字符串的相似度


主站蜘蛛池模板: 五年级下册语文第七单元口语交际| 零食加盟店10大品牌| 国产老阿姨| 娱乐真相| 挠丝袜| 布拉德米勒| 赫伯曼电影免费观看| 但愿人长久| 张达| 施华| 公共频道| 日本十大歌姬排名| 贝的故事教案设计优秀教案| 太医派的开胃汤配方| 55天在北京| 橘子洲旅游攻略| 熊出没十年之约| 湖南卫视节目表今天| 普庵咒全文注音版| 金瓶儿| 艾娜| 常景如| 电影《stag》完整版| 小米汽车标志图片| jjdd| 流浪地球2演员表| 蜡笔小新日语原版| 西海情歌歌词全文| 电影一对一| 弦月梦影| 出轨的女人电影| 电影英雄| 郭云飞| 炊事班的故事演员表| 黄浩雯主演过的所有短剧| 优秀范文| 谍变1939电视剧剧情介绍| 三晶变频器| 职业兽医医生资格证报名官网| 林莉娴| 黄金太阳2|

!!!站長長期在線接!!!

網站、小程序:定制開發/二次開發/仿制開發等

各種疑難雜癥解決/定制接口/定制采集等

站長微信:lxwl520520

站長QQ:1737366103