List of Function Aliases

There are quite a few functions in PHP which you can call with more than one name. In some cases there is no preferred name among the multiple ones, is_int and is_integer are equally good for example. However there are functions which changed names because of an API cleanup or some other reason and the old names are only kept as aliases for backward compatibility. It is usually a bad idea to use these kind of aliases, as they may be bound to obsolescence or renaming, which will lead to unportable script. This list is provided to help those who want to upgrade their old scripts to newer syntax.

Aliases
Alias Canonical function name Extension used
_ gettext Gettext
chop rtrim Base syntax
close closedir Base syntax
com_get com_propget COM
com_propset com_propput COM
com_set com_propput COM
die exit Miscellaneous functions
diskfreespace disk_free_space Filesystem
doubleval floatval Base syntax
fputs fwrite Base syntax
gzputs gzwrite Zlib
i18n_convert mb_convert_encoding Multi-bytes Strings
i18n_discover_encoding mb_detect_encoding Multi-bytes Strings
i18n_http_input mb_http_input Multi-bytes Strings
i18n_http_output mb_http_output Multi-bytes Strings
i18n_internal_encoding mb_internal_encoding Multi-bytes Strings
i18n_ja_jp_hantozen mb_convert_kana Multi-bytes Strings
i18n_mime_header_decode mb_decode_mimeheader Multi-bytes Strings
i18n_mime_header_encode mb_encode_mimeheader Multi-bytes Strings
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 Base syntax
is_double is_float Base syntax
is_integer is_int Base syntax
is_long is_int Base syntax
is_real is_float Base syntax
is_writeable is_writable Base syntax
join implode Base syntax
key_exists array_key_exists Base syntax
ldap_close ldap_unbind LDAP
mbstrcut mb_strcut Multi-bytes Strings
mbstrlen mb_strlen Multi-bytes Strings
mbstrpos mb_strpos Multi-bytes Strings
mbstrrpos mb_strrpos Multi-bytes Strings
mbsubstr mb_substr Multi-bytes Strings
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 Base syntax
recode recode_string Recode
show_source highlight_file Base syntax
sizeof count Base syntax
snmpwalkoid snmprealwalk SNMP
strchr strstr Base syntax