Re: Comparing 2 strings.
| From: | CPT John W. Holmes | Date: | Wed, 19 Nov 2003 19:27:30 +0000 |
| Subject: | Re: Comparing 2 strings. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-170335@lists.php.net to get a copy of this message | ||
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...