What is the inequality operator in php

(*-*)浩
Release: 2023-02-23 17:38:01
original
6911 people have browsed it

What is the inequality operator in php

PHP comparison operators are used to compare two values ​​​​(numbers or strings). Today we will introduce the inequality operator.

!=, not equal to operator, returns true if $x is not equal to $y. (Recommended learning: PHP video tutorial)





  


Copy after login

<>, not equal to operator, returns true if $x is not equal to $y.





 $y); // 返回 false,因为值相等
?>  


Copy after login

The above is the detailed content of What is the inequality operator in php. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
php
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 [email protected]
Latest issues
Popular Tutorials
More>
Latest downloads
More>
web effects
Website source code
Website materials
Front end template
About us Disclaimer Sitemap
PHP Chinese website:Public welfare online PHP training,Help PHP learners grow quickly!