【问题标题】:PHP is case sensitive then why print_R is working? [duplicate]PHP 区分大小写,那么为什么 print_R 可以工作? [复制]
【发布时间】:2012-09-06 12:06:33
【问题描述】:

PHP 是区分大小写的,这在 PHP 手册中有所提及。对于显示array,我们使用print_r(),这是PHP 的内置array 函数,那么为什么print_R() 可以工作?

【问题讨论】:

标签: php


【解决方案1】:

见以下网址:-

Are PHP functions case sensitive?

http://www.wellho.net/mouth/93_Case-Sensitive-.html

阅读

我引用this:

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

所以,看起来用户定义是区分大小写的,有人投票支持使 PHP5 下的函数/对象区分大小写。

【讨论】:

    猜你喜欢
    • 2013-11-07
    • 1970-01-01
    • 2011-11-17
    • 2019-05-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2010-09-28
    相关资源
    最近更新 更多