note 10739 added to soundex
| From: | darrin at lythgoes dot net | Date: | Fri, 19 Jan 2001 19:53:40 +0000 |
| Subject: | note 10739 added to soundex | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-9977@lists.php.net to get a copy of this message | ||
Be careful when comparing the results of PHP's soundex and MySQL's soundex. PHP only
returns a 4 character string, no matter how long the actual soundex value of your original string
could be.
MySQL, on the other hand, always returns the full soundex string. You have to use MySQL's
substring() to get soundex() to return a standard length code.
http://www.php.net/manual/en/function.soundex.php