Thanks to visit codestin.com
Credit goes to github.com

Skip to content

match expression #19

@i582

Description

@i582

RFC: https://wiki.php.net/rfc/match_expression_v2

Example:

match ($a) {
  10 => 100
};

match ($a) {
  10 => 100,
  default => 101,
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    PHP 8PHP 8 features

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions