PHP variable / function / class names using special characters

后端 未结 5 1551
忘了有多久
忘了有多久 2021-02-12 22:40

I understand that the underscore _ is an acceptable character for naming variables / functions / classes etc. However I was wondering if there are any other special

5条回答
  •  南方客
    南方客 (楼主)
    2021-02-12 22:56

    A valid {variable | function} name starts with a letter or underscore, followed by any number of letters, numbers, or underscores.

    http://www.php.net/manual/en/functions.user-defined.php http://www.php.net/manual/en/language.variables.basics.php

提交回复
热议问题