Run Time 4:04Free
Before we can review what's new in PHP 7, we should first get the proper development environment setup. Luckily, Rasmus has done most of the work for us!
Run Time 3:17Free
In addition to more complex typehints, in PHP 7, we now have the ability to typehint scalars. Let me show you!
Run Time 3:00Free
If you wish, you may now declare return types for your interfaces and methods.
Run Time 9:21Free
The "spaceship" operator is definitely confusing at first to understand. Let's review a few examples to figure it out.
Run Time 1:31Free
Remember the days of checking whether a variable 'isset', and using the result to respond in one of two ways? Cumbersome would be an understatement! Luckily, with PHP7, the process is much simpler.
Run Time 2:08Free
While not a huge new feature, you now, if you wish, may group your "use" import statements.
Run Time 5:04Free
Much like anonymous functions, in PHP 7, you now have the ability to create anonymous classes. They're definitely not for everything, but you might find some good use-cases from time to time.