Back Button Languages
PHP 7 Up and Running

PHP 7 Up and Running

Slated for release in December, 2015, PHP 7 brings a wealth of new features, bug fixes, and performance improvements. If you're curious, come with me, as I demonstrate what's new!

Intermediate
7 episodes
28m
7
Latest Episode in This Series

Added 4 years ago

Anonymous Classes

Much like anonymous functions, in PHP 7, you now have the ability to create anonymous classes. They're...

Watch
PHP 7 Up and Running

PHP 7 Up and Running

Slated for release in December, 2015, PHP 7 brings a wealth of new features, bug fixes, and performance improvements. If you're curious, come with me, as I demonstrate what's new!

Begin
7
Latest Episode in This Series

Added 4 years ago

Anonymous Classes

Much like anonymous functions, in PHP 7, you now have the ability to create anonymous classes. They're...

Watch

Your Teacher | Jeffrey Way

https://laracasts.s3.amazonaws.com/avatars/jeffrey-avatar.jpg's avatar
Hi, I'm Jeffrey. I'm the creator of Laracasts and spend most of my days building the site and thinking of new ways to teach confusing concepts. I live in Orlando, Florida with my wife and two kids.
    1. Free Episode Run Time 4:04

      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!

    2. Free Episode Run Time 3:17

      In addition to more complex typehints, in PHP 7, we now have the ability to typehint scalars. Let me show you!

    3. Free Episode Run Time 3:00

      If you wish, you may now declare return types for your interfaces and methods.

    4. Free Episode Run Time 9:21

      The "spaceship" operator is definitely confusing at first to understand. Let's review a few examples to figure it out.

    5. Free Episode Run Time 1:31

      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.

    6. Free Episode Run Time 2:08

      While not a huge new feature, you now, if you wish, may group your "use" import statements.

    7. Free Episode Run Time 5:04

      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.