hum*_*ird 8 php naming-conventions
我现在正在编码smt,并且我有点担心PHP有时用下划线调用它的函数,有时候用一个字来调用它.那是怎么回事?
例:
int strlen(string $ str)
和
bool in_array(混合$ needle,数组$ haystack [,bool $ strict = FALSE])
我希望有一个很好的理由,并且真的想知道它是什么.
引用自: http: //tnx.nl/php.html
PHP 的函数命名不一致
下划线与无下划线之间没有明显的系统:
underscore no underscore:
stream_get_line readline
disk_free_space diskfreespace
is_object isset
mcal_day_of_week jddayofweek
set_error_handler setlocale
snmp_get_quick_print snmpget
get_browser getallheaders
base64_encode urlencode
image_type_to_mime_type imagetypes
msql_num_fields mysql_numfields
php_uname phpversion
strip_tags stripslashes
bind_textdomain_codeset bindtextdomain
cal_to_jd gregoriantojd
str_rot13 strpos
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
886 次 |
最近记录: |