阅读背景:

PHP:仅将函数范围限制在当前文件中

来源:互联网 

Is there any way to limit the scope of non-class functions in a php file and making them the only accessible within the php file it is located in? Like how C can achieve this using static keyword with functions. In php static seems to be for classes only. I want to hide helper functions that should only be accessed by functions within the file. Thanks.Is there any way to limit the scope of non-clas




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: