soundex function

Returns the Soundex representation of a string. Soundex is a phonetic matching algorithm, so strings with similar sounds should be represented by the same Soundex code.

Syntax

soundex(string)

Arguments

string → a string

Example

 soundex('robert') → 'R163'

 soundex('rupert') → 'R163'

 soundex('rubin') → 'R150'