我正在挖掘一些代码,发现了一些对 mySQL_fetch_array
的调用。 PHP 对函数名称是否区分大小写?我记得在某处读过这篇文章,但似乎找不到任何引用。
最佳答案
我引用 this :
Note: Function names are case-insensitive, though it is usually good form to call functions as they appear in their declaration.
所以,看起来用户定义的函数不区分大小写,有一个 vote用于使 PHP5 下的函数/对象区分大小写。
关于php - PHP 函数是否区分大小写?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5643496/