我现在正在编码smt,并且我有点担心
PHP有时用下划线调用它的函数,有时候用一个单词.那是怎么回事?
例:
int strlen(string $str)
和
bool in_array ( mixed $needle,array $haystack [,bool $strict = FALSE ] )
我希望有一个很好的理由,并且真的想知道它是什么.
引用自:
http://tnx.nl/php.html
PHP has inconsistent function naming
There is no apparent system in underscore(s) versus no underscore(s):
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