RE: Re: Inspiration for a Tombstone.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux