钟毅2017-10-04 14:32:58
arr[0]=The following mainly depends on what type of data content you want to put. For numeric types, no explicit annotation is required. Characters and symbols must be enclosed in double quotes. Of course, if your subscript is a character, you need to add double quotes. This requires special attention. The variable must specify the type of storage. PHP is automatically transformed.
数据分析师2017-09-30 22:44:51
Should we use double quotes or not when assigning values to an array? - PHP Chinese website Q&A - Should we use double quotes or not when assigning values to an array? - PHP Chinese website Q&A
Take a look around and learn.
蝎子2017-07-24 10:59:13
The key name in the array is a variable, and the key value is equivalent to the value of the variable. If there is no variable in a string, it is best to add single quotes. Double quotes will parse the variable, which can be slower according to logic