So here is my problem
I do not know if there is another way to solve this without using arrays....but I am assuming that I DO need to use arrays....Anywa ys
FIRST ARRAY (SINGLE):
SECOND ARRAY (MULTI-DIMENSIONAL)
What I want to do is see if the values of the Results array fall within the Baseball array.
For example if $results = ("male","right" ,"long") then we would have a match!
BUT, if $results = ("male","LEFT", "long") we would NOT have a match....
So how do I check this? Any help would be greatly appreciated....
I have tried this method...
But have had no luck :(
I do not know if there is another way to solve this without using arrays....but I am assuming that I DO need to use arrays....Anywa ys
FIRST ARRAY (SINGLE):
Code:
$results = array($question1,$question2,$question3);
Code:
$baseball = array( array("male","female"), array("right","middle"), array("long","medium","short"));
For example if $results = ("male","right" ,"long") then we would have a match!
BUT, if $results = ("male","LEFT", "long") we would NOT have a match....
So how do I check this? Any help would be greatly appreciated....
I have tried this method...
Code:
if (in_array($results, $baseball)) { print "WE HAVE A MATCH"; } else { print "NO MATCH"; }
But have had no luck :(
Comment