> if ($item == 'blue')

Also, remember that the failsafe way to compare strings is not with
==, but using strcmp(). You might run into trouble if you compare two
numeric strings using ==  (for example, "1" == "+1", which might not
be what you want).

-- 
Bruno Lustosa <[EMAIL PROTECTED]>
ZCE - Zend Certified Engineer - PHP!
http://www.lustosa.net/

Reply via email to