Menu
Hi,
I have some validation to do,
I have a set of values in the form b1, b2, b3, b4, w1, w25, w3, w4, etc.
I figured that I could put all these values in an array so that I can then compare an inputted value to the array, but am unsure exactly how to do it
$numberArray = array(“b1”, “b2”, “b3”, “b4”, “w1”, “w25”, “w3”, “w4”);
then if I have another variable $inputNumber, how do I compare this to the array, i.e. check if it is in the array?
thanks a lot