Re: Odd Code Error.
| From: | daniel at electroteque dot org | Date: | Tue, 20 Jan 2004 23:32:30 +0000 |
| Subject: | Re: Odd Code Error. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-175245@lists.php.net to get a copy of this message | ||
>> Hmm after all this time, are you saying its best to use === instead of
>> == in any application ?
>
> I would recommend using it whenever you can. It may require a few extra
> lines of code here and there, but you know for sure what 'type' you are
> dealing with. This is especially good when dealing with user input.
>
Ok i might start, i learn something new even after 4 years. I use this for
comparisons too strcmp($this->password, $this->password2)