What is <=> (the 'Spaceship' Operator) in PHP 7? [duplicate]

10/14 05:20
阅读数 0

问题:

This question already has answers here : 这个问题在这里已经有了答案
Closed 5 years ago . 5年前关闭。

PHP 7, which will come out in November this year will introduce the Spaceship (<=>) operator.将于今年 11 月发布的 PHP 7 将引入 Spaceship (<=>) 运算符。 What is it and how does it work?它是什么以及它是如何工作的?

This question already has an answer in our general reference question about PHP operators.这个问题在我们关于 PHP 运算符的一般参考问题中已经有了答案


解决方案:

参考一: https://en.stackoom.com/question/23PPe
参考二: https://stackoom.com/question/23PPe
展开阅读全文
打赏
0
0 收藏
分享
加载中
更多评论
打赏
0 评论
0 收藏
0
分享
返回顶部
顶部