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

Improvements to Array Spreading

In PHP 8.1, you can now spread arrays with keys. Let's take a look at a quick example.

Links

  • Front Line PHP
Trailing commas in function definitions
Up next Readonly Properties
  • 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

Click to call us

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