Comparing 2 strings.

From: Date: Wed, 19 Nov 2003 18:48:50 +0000
Subject: Comparing 2 strings.
Groups: php.general 
Request: Send a blank email to php-general+get-170333@lists.php.net to get a copy of this message
I currently store text from a MySQL blob field in a string $orig_text. I need to compare that with something someone type in from a form stored in $new_text. How would I go about comparing them to see if they are different or exactly the same? strcmp doesn't look like it will handle this too well. I can't go by the number of characters in the string either. Someone may be able to use new words but keep the length of the string the same. Thanks, Ed

« previous php.general (#170333) next »