string 用于将布尔值转换为字符串输出

true转为“true”,false转换为“false”

 如:

foo?string(“yes”,”no”)如果布尔值是true,那么返回“yes”,否则返回no

相关文章:

  • 2021-05-31
  • 2021-10-09
  • 2022-01-05
  • 2022-12-23
  • 2022-12-23
  • 2021-09-07
  • 2022-12-23
  • 2022-02-22
猜你喜欢
  • 2021-07-25
  • 2021-10-31
  • 2022-12-23
  • 2022-12-23
  • 2021-09-04
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案