Re: Comparing 2 strings.

From: Date: Wed, 19 Nov 2003 19:31:28 +0000
Subject: Re: Comparing 2 strings.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-170337@lists.php.net to get a copy of this message
I guess I did miss that it says that the comparison is case sensitive and binary safe. Thanks, Ed On Wed, 19 Nov 2003, CPT John W. Holmes wrote: > From: "Ed Curtis" <ed@homes2see.com> > > > 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. > > Why would you say that when strcmp() is exactly what you need to use?? > > ---John Holmes... >

« previous php.general (#170337) next »