$aa[bar] will report an error, right? PHP will consider bar as a constant.
红月
红月 2020-07-20 14:31:18
0
2
1171

$aa[bar] will report an error, right? PHP will consider bar as a constant

红月
红月

reply all(2)
手机用户1628658718

If you don’t add single quotes, there will be no error, and the results will be output as usual, but there will be a warning to remind you to add single quotes

Tngtion

Variables with $

Strings with quotes

That’s either an array, a constant or a built-in function, right?

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!