SPATIE

Services
Our philosophy Packages Postcards Guidelines Documentation
Products Blog About
Login Work with us
  • Introduction
  • 1. Getting started with PHP 8

  • Automatically upgrading your code to PHP 8 using Rector
  • 2. New features in PHP 8

  • The Stringable interface
  • The match expression
  • Object classnames
  • Improved exceptions
  • Named arguments
  • Promoted properties
  • The nullsafe operator
  • Three new string functions
  • Union types
  • Adding meta data using attributes
  • Exploring WeakMaps
  • Trailing commas in function definitions
  • 3. New features in PHP 8.1

  • Improvements to Array Spreading
  • Readonly Properties
  • Enums
  • First-class callables
  • Intersection Types
  • The Never Type

Learn how to build modern applications using PHP

Visit Front Line PHP

The match expression

In this video we discuss the match expression. It's the stricter and more type-safe version of switch.

Links

  • Front Line PHP: the book that explains all PHP 8 features and modern PHP in depth
  • The match expression RFC
The Stringable interface
Up next Object classnames
  • Services
  • Open source
  • Products
  • Courses
AboutBlogNewsletterDocsGuidelines

Kruikstraat 22, Box 12
2018 Antwerp, Belgium
info@spatie.be
+32 3 292 56 79
  • GitHub
  • Instagram
  • LinkedIn
  • X
  • Bluesky
  • Mastodon
  • YouTube
  • Privacy
  • Disclaimer

+32 3 292 56 79

Our office is closed now, email us instead

A good
match?

What we do best

  • All things Laravel
  • Custom frontend components
  • Building APIs
  • AI-powered features
  • Simplifying things
  • Clean solutions
  • Integrating services

Not our cup of tea

  • WordPress themes
  • Cutting corners
  • Free mockups to win a job
  • "Just execute the briefing"

In short: we'd like to be a substantial part of your project.

Get in touch via email