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

Reply via email to