symbol and decimal number true in php
I have script like this $number = range(0, 9); when I have condition like this if (in_array('@', $number) === true) { echo "true"; }else "false"; and output: true and my question is why the symbols is the same whit any number in array $number?? I want symbols just symbols not number. example I want like this if (in_array('@', $number) === true) { echo "true"; }else "false"; output : false From the documentation for in_array() : If the third parameter strict is set to TRUE then the in_array() function will also check the types of the needle in the haystack. In PHP, casting any string that doesn