Posts by Luis Brito • 131 points
1 post
-
3
votes5
answers2497
viewsA: What is the purpose of the "Spaceship Operator" <=> of PHP7?
Complementing the @stderr response, you can use it in functions that work with data sorting. See the case of the usort function, which takes as the second parameter a function that must return -1, 0…