Is there any legitimate use for bare strings in PHP?

前端 未结 3 556
野性不改
野性不改 2020-12-04 00:51

This question got me thinking about bare strings.

When PHP sees a string that\'s not enclosed in quotes, it first checks to see if it\'s a constant. If not, it just

3条回答
  •  天涯浪人
    2020-12-04 00:59

    The only time you would use a bare string as a key is if it's been previously used in define() for a constant.

提交回复
热议问题