Home > Backend Development > PHP Tutorial > ecshop中$val{零}是什么意思?

ecshop中$val{零}是什么意思?

WBOY
Release: 2016-06-13 10:59:31
Original
1069 people have browsed it

ecshop中$val{0}是什么意思???
rt

不是应该[0]的吗?为什么却变成了{0}?
------最佳解决方案--------------------
字符串 $val 的第一个字符

虽然可以写作 $val[0] ,但为了防止歧义,php依然建议你写作 $val{0}
毕竟字符串和数组不是一回事
------其他解决方案--------------------

引用:
字符串 $val 的第一个字符

虽然可以写作 $val[0] ,但为了防止歧义,php依然建议你写作 $val{0}
毕竟字符串和数组不是一回事


哦。。原来如此,,,谢谢你了
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template