Greetings,
I'm quite new to php, or should I say, I'm quite new to programming. My question is with the following code:
if ($a != $b) {
exit;
}
elseif ($a != $c) {
exit;
}
else {
continue
}
I "know" there is a shorter way to write this, and to be honest I must have tried every possible way there is so far. Well, except the right way.
Here are a couple of my attempts that I thought should have worked:
if ($a != $b || $c) {
exit:
else {
continue
}
but it didn't, so I tried:
if ($a != $b || $a != $c) {
exit:
else {
continue
}
But that didn't work either.
Could someone help me out.
JeNNiDeS