php

A look at the splat operator (...)

Today we are going to look at something that's been missing from PHP for far too long - the ... token, a.k.a. splat operator. The splat operator helps us to convert an array of values to function's arguments.

Let's create a simple class with a method that takes three arguments: