Looking for a bit of PHP help here please..
I am looking to check to see if the contents of a few variables match defined criteria, and if so, to set the value of an additional variable accordingly.
So, I was thinking the below should work... but it has syntax errors which confuse me!
if ($var1 == "chicken" || $var == "banana") { $outputVar = "fail" } else { $outputVar = "success" }
What is wrong with the above?
Thanks