The first one with equals will work and I would expect that. But the second is not working as expected.
$nicktest = "new";
if ($nicktest == "new" || $nicktest == "fun" || $nicktest == "norm" || $nicktest == "pvp")
{
$odpoved = "Ok it works.";
echo $odpoved;
return;
}
$nicktest = "new";
if ($nicktest != "new" || $nicktest != "fun" || $nicktest != "norm" || $nicktest != "pvp")
{
$odpoved = "Ok it works too why?";
echo $odpoved;
return;
}