Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php 8 Match Expression

echo match (8.0) {
  '8.0' => "Oh no!",
  8.0 => "This is what I expected",
};
//> This is what I expected
// TurkoSoft
Source by www.php.net #
 
PREVIOUS NEXT
Tagged: #php #Match #Expression
ADD COMMENT
Topic
Name
2+8 =