当前位置: 首页> 函数类别大全> metaphone

metaphone

计算字符串的metaphone键
名称:metaphone
分类:字符串
所属语言:php
一句话介绍:计算字符串的 metaphone 键。

定义和用法

metaphone() 函数计算字符串的 metaphone 键。

metaphone 键代表字符串的英语发音。

metaphone() 函数可用于拼写检查程序。

注释:metaphone() 函数为发音相似的单词创建相同的键。

注释:所生成的 metaphone 键长度可变。

提示:metaphone() 比 soundex() 函数更精确,因为 metaphone() 了解英语发音的基本规则。

语法

metaphone(string,length)
参数 描述
string 必需。规定要检查的字符串。
length 可选。规定 metaphone 键的最大长度。
同类函数
  • 输出格式化的字符串 vprintf

    vprintf

    输出格式化的字符串
  • 返回格式化的字符串 sprintf

    sprintf

    返回格式化的字符串
  • 反引用一个使用 addcslashes() 转义的字符串 stripcslashes

    stripcslashes

    反引用一个使用addcslashes()
  • 计算子字符串出现次数 substr_count

    substr_count

    计算子字符串出现次数
  • 将字符由一种 Cyrillic 字符转换成另一种 convert_cyr_string

    convert_cyr_string

    将字符由一种Cyrillic字符转换成另
  • 将HTML实体转换为相应的字符 html_entity_decode

    html_entity_decode

    将HTML实体转换为相应的字符
  • 从字符串的开头删除空格(或其他字符) ltrim

    ltrim

    从字符串的开头删除空格(或其他字符)
  • 使用 uuencode 编码一个字符串 convert_uuencode

    convert_uuencode

    使用uuencode编码一个字符串
热门文章