Modern PHP 8.2 Match Expressions
PHP 8 introduced match, which is an expression (evaluates to a value), does strict type checking (===), and does not require break statements.
Syntax
= match() {
200, 201 => "Success",
404 => "Not Found",
500 => "Server Error",
default => "Unknown",
};
Your Task
Complete the getTierBadge function to map user tiers (ree, pro, enterprise) to their respective badge label using modern match.