$array = array('a', 'b', 'c', 'd', );
$letter = 'some symbol, posted by user';
How to find out if there is $letterone of the characters listed in $array?
For example, if $letter = 'G'not Gin $array, well then return false.
Yes, I tried in_array(), but there are too many characters, is there another (shorter) solution?
source
share