A php namespace called default

后端 未结 2 471
[愿得一人]
[愿得一人] 2021-01-18 18:14

gives me an unexpecected T_DEFAULT, is there any way of working around this? Can I escape the reserved word somehow?

2条回答
  •  深忆病人
    2021-01-18 18:33

    As @drick says you cant use a php reserved word for your purpose.

    It has its own meaning. For more info on namespaces you can have a look here FYI default is a reserved word used in switch case more info here

提交回复
热议问题