You are here : phpstringmetaphone

metaphone() - string

Calculates the metaphone key of str.
Parameters :
  • str - The input string.
  • phonemes - This parameter restricts the returned metaphone key to phonemes characters in length. The default value of 0 means no restriction.

  • Syntax

    string metaphone
        ( string $str
       [, int $phonemes = 0
      ] )


    Example

    <?phpvar_dump(metaphone('programming'));var_dump(metaphone('programmer'));?>


    Output / Return Value


    Limitations


    Alternatives / See Also


    Reference