Forgive me if this is a common thing but I'm not sure how I should go about it.
I would like to see if three variables are identical to each other
I thought i could do this:
<?php
if ($one == $two == $three) {
echo "they all match.";
} else {
echo "one of these variables do not match.";
}
?>
But i guess that's not possible.
Is there a syntax for this? or do I have to check them individually/with && or || ?
I'm aware that checking them separately would give more accuracy (and is probably better practice) but for this particular situation it doesn't matter which one doesn't match.