Home >Backend Development >PHP Problem >How to enter the not equal symbol in php?
How to input the inequality symbol in php: 1. You can use the inequality symbol [a8093152e673feb7aba1828c43532094] in BASIC and PASCIC languages; 2. You can use the inequality symbol [a8093152e673feb7aba1828c43532094] in C, JAVA, and PERL languages. !=].
How to input the inequality symbol in php:
PHP can use the inequality symbol in BASIC and PASCIC languages :a8093152e673feb7aba1828c43532094
You can also use the inequality symbols of C, JAVA, and PERL languages: !=
For example:
$a=1; $b=2; echo $a<>$b; echo $a!=$b;
As an aside, when PHP performs size and comparison judgments, it must perform type conversion and convert it to a type that can be judged before comparing. If you do not want to perform this conversion before judging, that is to say, judge if the types are different. is not equal, then the following symbols should be used: !==
For example:
$a=123; $b='123'; echo $a!==$b;
Related learning recommendations: PHP programming from entry to proficient
The above is the detailed content of How to enter the not equal symbol in php?. For more information, please follow other related articles on the PHP Chinese website!