Concept Flow - Match expression (PHP 8)
Evaluate expression
Compare with each case
Match found?
No→Throw error or default
Yes
Return matched case value
End
The match expression evaluates a value, compares it to cases, and returns the matching case's result or a default.