I have:
if($tha==1||$tha==2||$tha==3...){
echo 'correct';
}
$tha is a value from 1 to 10000, randomly chosen.
If it is the same as one of the number to check against, then echo.
I have the numbers to check against stored in a array if needed called $thaArray. The count() on this array is 500.
Is there a way to make the if statement without typing all the elements I need to check against individually like above?