Hi guys,
You will have to excuse my articulation in matters of PHP its all new and slightly confusing.
What I am trying to do is execute a line of code based on these variables having the same value.
e.g I Have this:
if (($first == 2) && ($second == 2)){
// do something
}
This I understand but how would I execute the code in a case where the values may range from 0-10 in both the $first and $second variable.
The only thing I can think of is creating an array for each value which is very laborious way of doing it.What I am trying to do is this:
if (($first == 2) && ($second == 2) && ($third == 2)){
// do something
}
but the solution needs to be flexible so that any 3 matching values ranging from 0-9 will execute the code.
thanks
w9914420