Luke Downing’s Larabits – Exploring PHP’s Spaceship Operator

No, we’re not talking about astronauts here! The spaceship operator in PHP allows you to drastically simplify sorting logic when dealing with complex data structures, such as multidimensional arrays. Let me show you how to use it in this Larabit.

Watch more Larabits on:

Watch thousands of videos, track your progress, and participate in a massive Laravel community at


Laracasts Twitter:
Jeffrey Way Twitter:


Leave a Reply

Your email address will not be published. Required fields are marked *