[UPHPU] testing multiple items in an if

Wade Preston Shearer lists at wadeshearer.com
Sat Jan 19 20:38:16 MST 2008


Is…

	if($var != 'a' || 'b')


valid syntax? If yes, is it the same as…

	if($var != 'a' && $var != 'b')


…?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2425 bytes
Desc: not available
Url : http://uphpu.org/pipermail/uphpu/attachments/20080119/ba870266/smime.bin


More information about the UPHPU mailing list