PHP 8: New Match expression. How to use it?
PHP 8 introduced us to a new expression - 'match' - very powerful functionality that will often be a great alternative to the 'switch' statement. I say "often" here because both match and switch have their own uses, often not overlapping with each other. So let's take a look at the differences between the two.View More