// Once upon a time there was a farmer// He had multiple haystacks$haystackOne = range(1, 10);$haystackTwo = range(11, 20);$haystackThree = range(21, 30);// In one of these haystacks he lost a needle$needle = rand(1, 30);// He wanted to know in what haystack his needle was// And so he programmed...if (in_array($needle, $haystackOne)) { echo "The needle is in haystack one";} elseif (in_array($needle, $haystackTwo)) { echo "The needle is in haystack two";} elseif (in_array($needle, $haystackThree)) { echo "The needle is in haystack three";}// The farmer now knew where to find his needle// And he lived happily ever after