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
AliasMaster functionExtension used
_gettext()Gettext
choprtrim()Base syntax
closeclosedir()Base syntax
com_getcom_propget()COM
com_propsetcom_propput()COM
com_setcom_propput()COM
dieexit()Miscellaneous functions
diskfreespacedisk_free_space()Filesystem
doublevalfloatval()Base syntax
fputsfwrite()Base syntax
gzputsgzwrite()Zlib
i18n_convertmb_convert_encoding()Multi-bytes Strings
i18n_discover_encodingmb_detect_encoding()Multi-bytes Strings
i18n_http_inputmb_http_input()Multi-bytes Strings
i18n_http_outputmb_http_output()Multi-bytes Strings
i18n_internal_encodingmb_internal_encoding()Multi-bytes Strings
i18n_ja_jp_hantozenmb_convert_kana()Multi-bytes Strings
i18n_mime_header_decodemb_decode_mimeheader()Multi-bytes Strings
i18n_mime_header_encodemb_encode_mimeheader()Multi-bytes Strings
imap_createimap_createmailbox()IMAP
imap_fetchtextimap_body()IMAP
imap_getmailboxesimap_list_full()IMAP
imap_getsubscribedimap_lsub_full()IMAP
imap_headerimap_headerinfo()IMAP
imap_listmailboximap_list()IMAP
imap_listsubscribedimap_lsub()IMAP
imap_renameimap_renamemailbox()IMAP
imap_scanimap_listscan()IMAP
imap_scanmailboximap_listscan()IMAP
ini_alterini_set()Base syntax
is_doubleis_float()Base syntax
is_integeris_int()Base syntax
is_longis_int()Base syntax
is_realis_float()Base syntax
is_writeableis_writable()Base syntax
joinimplode()Base syntax
key_existsarray_key_exists()Base syntax
ldap_closeldap_unbind()LDAP
mbstrcutmb_strcut()Multi-bytes Strings
mbstrlenmb_strlen()Multi-bytes Strings
mbstrposmb_strpos()Multi-bytes Strings
mbstrrposmb_strrpos()Multi-bytes Strings
mbsubstrmb_substr()Multi-bytes Strings
mysqlmysql_db_query()MySQL
mysql_createdbmysql_create_db()MySQL
mysql_db_namemysql_result()MySQL
mysql_dbnamemysql_result()MySQL
mysql_dropdbmysql_drop_db()MySQL
mysql_fieldflagsmysql_field_flags()MySQL
mysql_fieldlenmysql_field_len()MySQL
mysql_fieldnamemysql_field_name()MySQL
mysql_fieldtablemysql_field_table()MySQL
mysql_fieldtypemysql_field_type()MySQL
mysql_freeresultmysql_free_result()MySQL
mysql_listdbsmysql_list_dbs()MySQL
mysql_listfieldsmysql_list_fields()MySQL
mysql_listtablesmysql_list_tables()MySQL
mysql_numfieldsmysql_num_fields()MySQL
mysql_numrowsmysql_num_rows()MySQL
mysql_selectdbmysql_select_db()MySQL
mysql_tablenamemysql_result()MySQL
ociassignelemOCICollection::assignElemOCI8
ocibindbynameoci_bind_by_name()OCI8
ocicanceloci_cancel()OCI8
ocicloselobOCILob::closeOCI8
ocicollappendOCICollection::appendOCI8
ocicollassignOCICollection::assignOCI8
ocicollmaxOCICollection::maxOCI8
ocicollsizeOCICollection::sizeOCI8
ocicolltrimOCICollection::trimOCI8
ocicolumnisnulloci_field_is_null()OCI8
ocicolumnnameoci_field_name()OCI8
ocicolumnprecisionoci_field_precision()OCI8
ocicolumnscaleoci_field_scale()OCI8
ocicolumnsizeoci_field_size()OCI8
ocicolumntypeoci_field_type()OCI8
ocicolumntyperawoci_field_type_raw()OCI8
ocicommitoci_commit()OCI8
ocidefinebynameoci_define_by_name()OCI8
ocierroroci_error()OCI8
ociexecuteoci_execute()OCI8
ocifetchoci_fetch()OCI8
ocifetchintooci_fetch_array(), oci_fetch_row(), oci_fetch_assoc(), oci_fetch_object()OCI8
ocifetchstatementoci_fetch_all()OCI8
ocifreecollectionOCICollection::freeOCI8
ocifreecursoroci_free_statement()OCI8
ocifreedescoci_free_descriptor()OCI8
ocifreestatementoci_free_statement()OCI8
ocigetelemOCICollection::getElemOCI8
ociinternaldebugoci_internal_debug()OCI8
ociloadlobOCILob::loadOCI8
ocilogonoci_connect()OCI8
ocinewcollectionoci_new_collection()OCI8
ocinewcursoroci_new_cursor()OCI8
ocinewdescriptoroci_new_descriptor()OCI8
ocinlogonoci_new_connect()OCI8
ocinumcolsoci_num_fields()OCI8
ociparseoci_parse()OCI8
ocipasswordchangeoci_password_change()OCI8
ociplogonoci_pconnect()OCI8
ociresultoci_result()OCI8
ocirollbackoci_rollback()OCI8
ocisavelobOCILob::saveOCI8
ocisavelobfileOCILob::importOCI8
ociserverversionoci_server_version()OCI8
ocisetprefetchoci_set_prefetch()OCI8
ocistatementtypeoci_statement_type()OCI8
ociwritelobtofileOCILob::exportOCI8
ociwritetemporarylobOCILob::writeTemporaryOCI8
odbc_doodbc_exec()ODBC
odbc_field_precisionodbc_field_len()ODBC
pg_clientencodingpg_client_encoding()PostgreSQL
pg_setclientencodingpg_set_client_encoding()PostgreSQL
poscurrent()Base syntax
recoderecode_string()Recode
show_sourcehighlight_file()Base syntax
sizeofcount()Base syntax
snmpwalkoidsnmprealwalk()SNMP
strchrstrstr()Base syntax
xptr_new_contextxpath_new_context() 
To Top