Suppose
$string = "1,2,3,40,5,6,7";
Does the above string contain the number 4?
If the string is viewed as a string of characters, and we're looking for the character '4', then yes, $string contains the number 4.
If the string is viewed as a comma separated list of integers, then no, $string does not contain the number 4.