Gen. partnerAlgotech

PHP function metaphone()

Calculate the metaphone key of a string

|
September 11, 2019

Availability in PHP 4.0

Calculate the metaphone key of a string

Parameters

Parameter Data type Default value Note
$str string not String being processed.
$phonemes int 0 This parameter restricts the returned metaphone key to phonemes characters in length. The default value of 0 means no restriction.

Return values

string

|bool the metaphone key as a string, or FALSE on failure

Other resources

Official metaphone documentation

Loading comments...

Stay in the loop

Subscribe to our newsletter and get the latest cybersecurity news delivered straight to your inbox.

Your data is safe. You can unsubscribe from the newsletter at any time.