PHP 8.3.4 Released!

函数别名列表

这里是函数别名列表,所有的别名列表如下。通常使用别名并不是一个好主意,这是因为它可能会废弃不用或者重新定义。这会导致不可移植脚本的出现。本列表是为了帮助想要升级他们旧有脚本到新版本语法的开发人员。很多 PHP 函数都有一个别名,可以用别名调用它。在某些情况下,两个名称都非常合适,无从取舍,is_int()is_integer() 就是一个很好的例子。而有些情况则是,由于内部 API 的清理或其它一些原因,函数名被修改,但是老的名称保留了下来,以确保向后兼容性。使用这种别名通常不是个好主意,因为这种别名可能会被完全废弃或更名,导致脚本难以移植到新版本的 PHP 上。我们提供了本列表,来帮助那些要升级旧程序到更新语法的人。

别名列表
别名 主函数 使用的扩展模块
_ gettext() Gettext
chop rtrim() 基本语法
close closedir() 基本语法
com_get com_propget() COM
com_propset com_propput() COM
com_set com_propput() COM
die exit() 杂类函数
diskfreespace disk_free_space() 文件系统函数
doubleval floatval() 基本语法
fputs fwrite() 基本语法
gzputs gzwrite() Zlib
i18n_convert mb_convert_encoding() 多字节字符串函数
i18n_discover_encoding mb_detect_encoding() 多字节字符串函数
i18n_http_input mb_http_input() 多字节字符串函数
i18n_http_output mb_http_output() 多字节字符串函数
i18n_internal_encoding mb_internal_encoding() 多字节字符串函数
i18n_ja_jp_hantozen mb_convert_kana() 多字节字符串函数
i18n_mime_header_decode mb_decode_mimeheader() 多字节字符串函数
i18n_mime_header_encode mb_encode_mimeheader() 多字节字符串函数
imap_create imap_createmailbox() IMAP
imap_fetchtext imap_body() IMAP
imap_getmailboxes imap_list_full() IMAP
imap_getsubscribed imap_lsub_full() IMAP
imap_header imap_headerinfo() IMAP
imap_listmailbox imap_list() IMAP
imap_listsubscribed imap_lsub() IMAP
imap_rename imap_renamemailbox() IMAP
imap_scan imap_listscan() IMAP
imap_scanmailbox imap_listscan() IMAP
ini_alter ini_set() 基本语法
is_double is_float() 基本语法
is_integer is_int() 基本语法
is_long is_int() 基本语法
is_real is_float() 基本语法
is_writeable is_writable() 基本语法
join implode() 基本语法
key_exists array_key_exists() 基本语法
ldap_close ldap_unbind() LDAP
mbstrcut mb_strcut() 多字节字符串函数
mbstrlen mb_strlen() 多字节字符串函数
mbstrpos mb_strpos() 多字节字符串函数
mbstrrpos mb_strrpos() 多字节字符串函数
mbsubstr mb_substr() 多字节字符串函数
mysql mysql_db_query() MySQL
mysql_createdb mysql_create_db() MySQL
mysql_db_name mysql_result() MySQL
mysql_dbname mysql_result() MySQL
mysql_dropdb mysql_drop_db() MySQL
mysql_fieldflags mysql_field_flags() MySQL
mysql_fieldlen mysql_field_len() MySQL
mysql_fieldname mysql_field_name() MySQL
mysql_fieldtable mysql_field_table() MySQL
mysql_fieldtype mysql_field_type() MySQL
mysql_freeresult mysql_free_result() MySQL
mysql_listdbs mysql_list_dbs() MySQL
mysql_listfields mysql_list_fields() MySQL
mysql_listtables mysql_list_tables() MySQL
mysql_numfields mysql_num_fields() MySQL
mysql_numrows mysql_num_rows() MySQL
mysql_selectdb mysql_select_db() MySQL
mysql_tablename mysql_result() MySQL
ociassignelem OCICollection::assignElem OCI8
ocibindbyname oci_bind_by_name() OCI8
ocicancel oci_cancel() OCI8
ocicloselob OCILob::close OCI8
ocicollappend OCICollection::append OCI8
ocicollassign OCICollection::assign OCI8
ocicollmax OCICollection::max OCI8
ocicollsize OCICollection::size OCI8
ocicolltrim OCICollection::trim OCI8
ocicolumnisnull oci_field_is_null() OCI8
ocicolumnname oci_field_name() OCI8
ocicolumnprecision oci_field_precision() OCI8
ocicolumnscale oci_field_scale() OCI8
ocicolumnsize oci_field_size() OCI8
ocicolumntype oci_field_type() OCI8
ocicolumntyperaw oci_field_type_raw() OCI8
ocicommit oci_commit() OCI8
ocidefinebyname oci_define_by_name() OCI8
ocierror oci_error() OCI8
ociexecute oci_execute() OCI8
ocifetch oci_fetch() OCI8
ocifetchinto oci_fetch_array(), oci_fetch_row(), oci_fetch_assoc(), oci_fetch_object() OCI8
ocifetchstatement oci_fetch_all() OCI8
ocifreecollection OCICollection::free OCI8
ocifreecursor oci_free_statement() OCI8
ocifreedesc oci_free_descriptor() OCI8
ocifreestatement oci_free_statement() OCI8
ocigetelem OCICollection::getElem OCI8
ociinternaldebug oci_internal_debug() OCI8
ociloadlob OCILob::load OCI8
ocilogon oci_connect() OCI8
ocinewcollection oci_new_collection() OCI8
ocinewcursor oci_new_cursor() OCI8
ocinewdescriptor oci_new_descriptor() OCI8
ocinlogon oci_new_connect() OCI8
ocinumcols oci_num_fields() OCI8
ociparse oci_parse() OCI8
ocipasswordchange oci_password_change() OCI8
ociplogon oci_pconnect() OCI8
ociresult oci_result() OCI8
ocirollback oci_rollback() OCI8
ocisavelob OCILob::save OCI8
ocisavelobfile OCILob::import OCI8
ociserverversion oci_server_version() OCI8
ocisetprefetch oci_set_prefetch() OCI8
ocistatementtype oci_statement_type() OCI8
ociwritelobtofile OCILob::export OCI8
ociwritetemporarylob OCILob::writeTemporary OCI8
odbc_do odbc_exec() ODBC
odbc_field_precision odbc_field_len() ODBC
pg_clientencoding pg_client_encoding() PostgreSQL
pg_setclientencoding pg_set_client_encoding() PostgreSQL
pos current() 基本语法
recode recode_string() Recode
show_source highlight_file() 基本语法
sizeof count() 基本语法
snmpwalkoid snmprealwalk() SNMP
strchr strstr() 基本语法
xptr_new_context xpath_new_context()  

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top