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
').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i <= lines; i++) { $numbering.append($(' ').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.