Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

What's New in PHP 8.1

PHP UK Conference via YouTube

Overview

Explore the new features introduced in PHP 8.1 through this conference talk from PHP UK 2022. Dive into strengthened type systems with Enumerations and "never", discover Fibers, learn about the new closure syntax and First Class Callable Syntax, and understand intersection types. Gain a comprehensive understanding of exciting additions like static values inside functions, class constants, the splat operator in arrays, named arguments, new initializers, readonly properties, and more. Examine changes to the MySQL error mode, Exceptions, Globals, and the Serializable Interface. Investigate the impact on PHP internals and applications, and get answers to common questions about these new features.

Syllabus

Introduction
enum type
enum example
Static values inside functions
Never type
Class constants
PHP type system
Pure intersection types
splat operator in arrays
named arguments
newinitializers
new attributes
readonly
octal
intel extension
fibers
pippa
Array is list
Array is just values
mysql error mode
Exceptions
Globals
Globals Restrictions
Serializable Interface
PHP 81
No to nonnullable arguments
PHP H1
Return Types
Applications
PHP Internals
Questions
Conclusion

Taught by

PHP UK Conference

Reviews

Start your review of What's New in PHP 8.1

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.