PHP 7 - Spaceship Operator

The spaceship operator ( <=> ) is new in PHP 7.0. You may hear it being referred to as the "Combined Comparison Operator" and sometimes the "rocket" or "rocketship" operator as it also looks like a rocket on its side. Simply put, it will return a -1, 0, or 1…

Read this article

PHP 7.0 - Anonymous Classes

A new feature of php 7.0 is anonymous classes. Anonymous classes are useful when simple, one-off objects need to be created, such as a value object. Below is an example of using an anonymous class for ensuring a user provided string is valid, and converts it for later use.…

Read this article