match() expression in PHP

Maybe you hadn’t heard about the existence of the match() expression in PHP. It’s something that was added in version 8. At first glance, it looks like a switch: But it has some differences: match() returns a value The match expression returns a value that we can store in a variable or not. In the … Read more