Re: strcasecmp()
| From: | John Holmes | Date: | Sun, 29 Aug 2004 17:58:47 +0000 |
| Subject: | Re: strcasecmp() | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-195079@lists.php.net to get a copy of this message | ||
Anthony Ritter wrote:
<? $first_name = "Hello"; $second_name = "Hello"; if(strcasecmp($first_name,$second_name)) { echo "words are equal"; } else { echo "words are not equal."; } ?>if(strcasecmp($first_name,$second_name)===0) { echo 'words are equal'; } else { echo 'words are not equal'; } -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com