在php中,$string = 123; 与 $string = "123"; 不加引号和加引号区别是什么?
橱窗的光
橱窗的光 2016-12-17 11:53:37
0
2
1129
橱窗的光
橱窗的光

reply all(2)
数据分析师

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.

迷茫

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template