- Overview
- Transcript
1.1 Introduction
There are few things more exciting than a new version of your chosen programming language! In this course I'm going to show you what's new in PHP 7 and 7.1.
1.Introduction1 lesson, 01:23
1.1Introduction01:23
2.PHP 76 lessons, 31:39
2.1Scalar Type Hints04:20
2.2Return Type Declarations06:02
2.3Null-Coalescing Operator03:31
2.4Spaceship Operator (Combined Comparison Operator)04:51
2.5Anonymous Classes06:38
2.6Error Handling06:17
3.PHP 7.13 lessons, 12:18
3.1Nullable Types03:58
3.2Destructuring05:33
3.3Class Constant Visibility02:47
4.Conclusion1 lesson, 01:09
4.1Conclusion01:09
1.1 Introduction
As a developer, there are few things more exciting than new versions of your chosen programming language. I mean we spend an insurmountable amount of time writing and working with code. And every new version brings new syntax and other goodies that make working with code even more enjoyable than it all ready is. Well PHP 7 and 7.1 are no exception. Hi, my name is Jeremy McPeak. And in this course, I'm going to show you what's new in PHP 7 and 7.1. We'll begin with the new features added to PHP 7, starting with scalar type hints and return type declarations. We'll then talk about the new null coalescing and spaceship operators and how they can simplify common patterns. We'll then talk about anonymous classes and how to catch internal PHP errors. Now from there we're going to turn to the new features in 7.1. You'll learn about nullable types and how they can make your code more flexible and concise. We'll look at the new array destructuring syntax, as well as the new support for destructuring data structures. And finally, we'll talk about class constant visibility. Now these are all wonderful additions to PHP, and I'm excited to spend the next few minutes going over these new features with you. So when you're ready, queue up the next video and we'll get started.