![]() ![]() One of the most important design choices in match expression is that it matches without type coercion. $status = match($request_method) Strict matches without type coercion ![]() For example, if the variable being evaluated is a string, the values in each case statement should also be strings.Match expression syntax is one of the nicest features in PHP 8 that improves the switch syntax in multiple ways.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |