OR or || argument problems



this is prolly a simple syntax thing...

if ($foo != "1" || $foo != "2" || $foo != "3"){
$foo = "1";

}

^^does not work

below works... above should work. i shouldn't have to go to this
trouble.

if ($foo != "1"){
if ($foo != "2"){
if ($foo != "3"){
$foo = "1";
}
}
}

.


Quantcast