// get_type 传 11.11
$get_type1 = (int)$_POST['get_type'] ? $_POST['get_type'] : 1; // 11.11
$get_type2 = (int)$_POST['get_type'] ?  : 1; // 11
echo $get_type1.PHP_EOL;
echo $get_type2.PHP_EOL;
           

三元运算符的细节

相关文章:

  • 2021-07-24
  • 2021-12-13
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-19
  • 2022-12-23
相关资源
相似解决方案