How to enter the not equal symbol in php?

coldplay.xixi
Release: 2023-03-02 13:52:02
Original
5137 people have browsed it

How to input the inequality symbol in php: 1. You can use the inequality symbol [<>] in BASIC and PASCIC languages; 2. You can use the inequality symbol [<>] 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 :<>

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;
Copy after login

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;
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!