Overview
Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
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