Lindsay Php

Lindsay Php

PHP Feature Match

A match expression creates an evaluation based on a identity check of a value. In a match expression it contains a subject expression that is able to be compared and contrasted against many different alternatives. These comparisons create an identity check which looks like (===) instead of a weak equality check that looks like (==).

PHP Feature Named Arguments

Named arguments are one of PHP newest update features which allows passing arguments to a function based on a specific parameter name instead of a parameter position. This allows the arguments to be order-independent, self-documenting, and allows you to skip default values at random.

PHP Feature Nullsafe Operator

With the newest update this provided the nullsafe operator. The nullsafe operator allows full short-circuiting. So after evaluating one element in the chain and it fails then the entire chain is ignored and the chain evaluates to null.

Summary

With the newest 8.0/8.2 Update PHP was able to create many more helpful features and updates to make writing PHP better and more open to all.