note 26754 added to function.soundex

From: Date: Mon, 11 Nov 2002 21:35:40 +0000
Subject: note 26754 added to function.soundex
Groups: php.notes 
Request: Send a blank email to php-notes+get-39314@lists.php.net to get a copy of this message
I am finding a peculiarity in using the Soundex function in PHP (4.2.2) against the one in MySql (3.23.39) . For instance, a soundex on the word "purchased" in PHP results in 'P622'. The same word using the MySql Soundex function results in 'P623'. The word 'five' using PHP results in 'F100' while MySql results in 'F000'. I have only caught a couple that are different so far - don't know if it's a bug in either PHP or MySql or something than can be adjusted/accounted for in code. Fred Dirkse OIC Group, Inc. www.oicgroup.net -- http://www.php.net/manual/en/function.soundex.php http://master.php.net/manage/user-notes.php?action=edit+26754 http://master.php.net/manage/user-notes.php?action=delete+26754 http://master.php.net/manage/user-notes.php?action=reject+26754

« previous php.notes (#39314) next »