RE: [PHP] Re: Inspiration for a Tombstone.
| From: | tedd | Date: | Fri, 27 Jun 2008 13:45:57 +0000 |
| Subject: | RE: [PHP] Re: Inspiration for a Tombstone. | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-276052@lists.php.net to get a copy of this message | ||
At 8:30 AM -0500 6/27/08, Jay Blanchard wrote:
[snip] Really? I do it this way: if ($user_name == "Dan S") That not only looks right at first glance, but it actually works. :-) [/snip] This works better though; if("Dan S" == $user_name) ... if you drop one of the comparison operators in your haste to type then an error gets thrown and you will be able to find it precisely.Ah yes, and this works even better. if('Dan S' == $user_name) ... also, no need for double quotes And being dyslexic, I knew the 'Dan S' should have come first, but didn't immediately recognize it as I was rushing to point out a double equal-sign boo-boo made by Col. Thanks, tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com