note 61453 deleted from language.types.boolean by betz
| From: | betz@php.net | Date: | Tue, 07 Feb 2006 21:11:52 +0000 |
| Subject: | note 61453 deleted from language.types.boolean by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-103230@lists.php.net to get a copy of this message | ||
Note Submitter: vdephily at bluemetrix dot com
----
Due to some internal lookup mechanism, testing for 'true' is faster than testing for
'TRUE', 'True' or other case manglings. It's even faster to test for
'0' or '1', but then you're changing the type of the variable, which is not
allways advisable.
This is probably not going to make a real difference in your script so no need to go regexp-replace
in your code, but it's worth it prefering the lowercase 'true' in new code.