📜  php 8 匹配表达式切换案例 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:15.185000             🧑  作者: Mango

代码示例1
switch (8.0) {
  case '8.0':
    $result = "Oh no!";
    break;
  case 8.0:
    $result = "This is what I expected";
    break;
}
echo $result;
//> Oh no!

//TurkoSoft