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

查看:31
本文介绍了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.

所以,看起来用户定义的函数不区分大小写,有一个 投票支持PHP5下的函数/对象区分大小写.

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天全站免登陆