Home >Backend Development >PHP Problem >How to enter the not equal symbol in php?

How to enter the not equal symbol in php?

coldplay.xixi
coldplay.xixiOriginal
2020-07-13 13:42:005248browse

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 enter the not equal symbol in php?

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=&#39;123&#39;;
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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Related articles

See more