RE: [PHP] Re: Inspiration for a Tombstone.

From: Date: Fri, 27 Jun 2008 13:30:10 +0000
Subject: RE: [PHP] Re: Inspiration for a Tombstone.
References: 1 2 3 4 5 6 7 8 9 10  Groups: php.general 
Request: Send a blank email to php-general+get-276048@lists.php.net to get a copy of this message
[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.

« previous php.general (#276048) next »