Home > Backend Development > PHP Tutorial > Combined comparison operator PHP7+

Combined comparison operator PHP7+

不言
Release: 2023-02-28 22:06:01
Original
2515 people have browsed it

php7+ supports the combined comparison operator, that is, <=>, which is called combined comparison operator in English. The combined comparison operator can easily compare two variables, and of course is not limited to the comparison of numerical data.
Syntax: $a<=>$b
If $a > $b, the returned value is 1
If $a == $b, the returned value is 0
If $a < $b, the returned value The value is -1

&#39;).addClass(&#39;pre-numbering&#39;).hide();
                    $(this).addClass(&#39;has-numbering&#39;).parent().append($numbering);
                    for (i = 1; i <= lines; i++) {
                        $numbering.append($(&#39;
&#39;).text(i));
                    };
                    $numbering.fadeIn(1700);
                });
            });
Copy after login

The above introduces the combined comparison operator PHP7+, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.

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