I have the following code and don't think and is needed, i.e. &&
should be used, as there is nothing to assign the left part to?
if($_REQUEST['foo'] != 'abc' and $_REQUEST['bar'] == 'def')
{
echo "all your base";
}
So it should be:
if($_REQUEST['foo'] != 'abc' && $_REQUEST['bar'] == 'def')
{
echo "all your base";
}
No comments:
Post a Comment