Is there any efficient way to check these multiple variable values with each other?
Example: If value of $v1
is abc and value of $v2
is abc and other variables are empty then return error because two values are same.
Another Example: If value of $v1
is abc and value of $v4
is abc and other variables are empty then return error because two values are same.
Like check every variable with every other variable, if it's same with anyone then return an error.
$v1 = $_POST['v1'];
$v2 = $_POST['v2'];
$v3 = $_POST['v3'];
$v4 = $_POST['v4'];
$v5 = $_POST['v5'];
$v6 = $_POST['v6'];