A php namespace called default

后端 未结 2 490
[愿得一人]
[愿得一人] 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:31

    You can't use reserved words like default for namespaces in PHP - you'll have to find a workaround (_default, default_, default1 etc.?).

提交回复
热议问题