At 11:01 AM +0100 6/27/08, Colin Guthrie wrote:
if ($user_name = "Dan S")

Works silently and looks right at first glance.

I forced myself to write things that way round a good number of years ago and it has served me well and caught a few potential mishaps.

Col.

Really?

I do it this way:

if ($user_name == "Dan S")

That not only looks right at first glance, but it actually works. :-)

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