O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Up to Speed with PHP 7

Video Description

In this Up to Speed with PHP 7 training course, expert author David Powers will teach you about the new features and changes in the next major version of PHP. This course is designed for users that already have a solid understanding of PHP.

You will start by learning about what has changed in PHP 7, including internal changes, changes to existing features, and removed features. From there, David will teach you about new operators and functions and type checking. This video tutorial also covers classes and generators and error handling, including anonymous classes, generator delegation, and how to catch fatal errors. Finally, you will cover miscellaneous changes, such as using reserved words in classes, uniform variable syntax, and using assertions for debugging.

Once you have completed this computer based training course, you will have learned all about the changes and new features in PHP 7. Working files are included, allowing you to follow along with the author throughout the lessons.

Table of Contents

  1. Getting Started
    1. Introduction To PHP 7 00:02:07
    2. About The Author 00:01:58
    3. Setting Up A Test Environment 00:02:07
  2. What Has Changed In PHP 7?
    1. Internal Changes 00:03:59
    2. Changes To Existing Features 00:03:20
    3. Removed Features 00:04:26
  3. New Operators And Functions
    1. Comparing Values With The Spaceship Operator 00:06:10
    2. Substituting Unset Values With The Null Coalesce Operator 00:05:30
    3. Unicode Codepoint Escape Syntax 00:04:23
    4. Integer Division 00:05:12
    5. Generating Random Bytes 00:01:44
    6. Generating Random Numbers 00:01:57
    7. Multiple Callbacks With preg_replace_callback_array 00:07:52
  4. Type Checking
    1. Return Type Declarations - Compound Types 00:07:04
    2. Introduction To Scalar Type Hinting 00:03:41
    3. Scalar Return Type Declarations 00:04:57
    4. Scalar Parameter Declarations 00:04:51
    5. Combining Scalar Parameter And Return Type Declarations 00:07:18
    6. Effect Of Strict Mode On Built-In Functions 00:04:18
    7. Using Scalar Type Hints With User Input 00:03:37
    8. Scalar Type Hinting - Review 00:03:41
  5. Classes And Generators
    1. Anonymous Classes 00:07:36
    2. Generator Return Expressions 00:05:16
    3. Generator Delegation 00:05:37
    4. Binding To Closures At Call-Time 00:03:37
    5. Grouping Use Declarations 00:06:24
  6. Error Handling
    1. Catching Fatal Errors 00:03:34
    2. Throwable Interface 00:02:56
    3. Catching Type And Parse Errors 00:04:19
    4. Reclassification of E_STRICT Errors 00:07:08
    5. New Reserved Words 00:00:55
    6. date.timezone Warning Removed 00:03:51
    7. Multiple Default Cases In Switch Statements 00:02:21
  7. Other Miscellaneous Changes
    1. Improve Security Of Unserialize 00:04:52
    2. Preserve Zero Fraction When Encoding As JSON 00:02:05
    3. Using Reserved Words In Classes 00:02:24
    4. Uniform Variable Syntax - Dereferencing 00:05:08
    5. Uniform Variable Syntax - Variable Variables 00:08:51
    6. Using Assertions For Debugging 00:05:27
  8. Conclusion
    1. PHP 7 Assessed 00:02:57