PHP函数是否区分大小写? [英] Are PHP functions case sensitive?

查看:115
本文介绍了PHP函数是否区分大小写?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在挖掘一些代码,并且发现了一些对 mySQL_fetch_array 的调用。 PHP对函数名称是否区分大小写?

I was digging through some code, and I found some calls to mySQL_fetch_array. Is PHP case sensitive about function names? I recall reading this somewhere but can't seem to find any reference to it.

推荐答案

我引用来自这个


注意:函数名称是
不区分大小写,但通常
是一种很好的形式来调用函数,因为
出现在其声明中。

Note: Function names are case-insensitive, though it is usually good form to call functions as they appear in their declaration.

所以,它看起来像用户定义的函数不区分大小写,有一个 vote

So, its looks like user-defined functions are not case-sensitive, there was a vote for making functions/objects under PHP5 case-sensitive.

这篇关于PHP函数是否区分大小写?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆