Related Links : Search Engine Optimization | | Search Engine Marketing | Online Marketing | Freelance Programmer| SEO Thailand | SEO Expert | SEO services | PHP Programmer Thailand | SEO Tutorial | What is SEO |

  Home Our SEO Services SEO Expert Consultant Php Programmer Scripts| Email : sachin {at} jainsachin {dot} com

PHP | Calculate the soundex key of a string | Manual | Tutorial | Help

SEO Services



Website Programming in PHP / MYSQL



Friends


    Calculate the soundex key of a string

    soundex

    (PHP 4, PHP 5)

    soundex — Calculate the soundex key of a string

    Description

    string soundex ( string $str )

    Calculates the soundex key of str .

    Soundex keys have the property that words pronounced similarly produce the same soundex key, and can thus be used to simplify searches in databases where you know the pronunciation but not the spelling. This soundex function returns a string 4 characters long, starting with a letter.

    This particular soundex function is one described by Donald Knuth in "The Art Of Computer Programming, vol. 3: Sorting And Searching", Addison-Wesley (1973), pp. 391-392.

    Parameters

    str

    The input string.

    Return Values

    Returns the soundex key as a string.

    Examples

    Example #1 Soundex Examples

    <?php
    soundex
    ("Euler")       == soundex("Ellery");    // E460
    soundex("Gauss")       == soundex("Ghosh");     // G200
    soundex("Hilbert")     == soundex("Heilbronn"); // H416
    soundex("Knuth")       == soundex("Kant");      // K530
    soundex("Lloyd")       == soundex("Ladd");      // L300
    soundex("Lukasiewicz") == soundex("Lissajous"); // L222
    ?>


    SEO Tutorial / Articles





    Php / Mysql Tutorial



    Articles



      Portfolio


      SEO by Jainsachin