5th August 2020 - 6 minutes read time
The PHP splat operator (...) has been available in PHP since version 5.6. When it was introduced I made note of it but have never really used it, so I thought it might be interesting to explore it a little.
Internally, the ellipsis operator in PHP is called T_ELLIPSIS, although I have heard a few different names for the operator in the past. This includes names like:
- Ellipsis
- Unpacking operator.
- Packing operator.
- Three dots operator
- Spread operator
- Splat operator
Personally, I think the splat is the correct name for this operator, so I'll be using that from now on.