types - Why is integer 0 equal to *(star) in PHP? -


this code:

$a=0; echo $a=='*' ? 'yes': 'no';  

outputs this

yes 

i want echo "no" without using === operator. if not please let me know reason why can not "no" result


Comments