Menu Home

soundex

osbo.com | PHP | Functions | soundex

Calculate the soundex key of a string

Syntax

soundex ( string $str ) : string

Parameters

str

The input string.

Return

Returns the soundex key as a string, or FALSE on failure.

Examples

<?

$str = "Hello";

$return = soundex($str);

echo $return;

?>
H400

PHP