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

Combined comparison operator PHP7+

不言
不言Original
2018-05-17 14:28:182549browse

php7+ supports the combined comparison operator, that is, 96b4fef55684b9312718d5de63fb7121, 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: $a96b4fef55684b9312718d5de63fb7121$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);
                });
            });

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.

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