search

Home  >  Q&A  >  body text

在php中,$string = 123; 与 $string = "123"; 不加引号和加引号区别是什么?

橱窗的光橱窗的光2908 days ago1100

reply all(2)I'll reply

  • 数据分析师

    数据分析师2017-09-30 22:45:15

    In php, what is the difference between $string = 123; and $string = "123"; without quotes and with quotes? -PHP Chinese website Q&A-In PHP, what is the difference between $string = 123; and $string = "123"; without quotes and with quotes? -PHP Chinese website Q&A

    Please watch and learn.

    reply
    0
  • 迷茫

    迷茫2016-12-17 11:55:03

    不加引号,是数字类型,说明$string这个变量的值是数字类型123,加上引号,是字符串

    reply
    0
  • Cancelreply