函数别名列表

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

别名列表
别名主函数使用的扩展模块
_gettext()Gettext
addswfmovie_add()Ming (flash)
addswfsprite_add()Ming (flash)
add_rootdomxml_add_root() 
addactionswfbutton_addAction()Ming (flash)
addcolorswfdisplayitem_addColor()Ming (flash)
addentryswfgradient_addEntry()Ming (flash)
addfillswfshape_addfill()Ming (flash)
addshapeswfbutton_addShape()Ming (flash)
addstringswftext_addString()Ming (flash)
addstringswftextfield_addString()Ming (flash)
alignswftextfield_align()Ming (flash)
attributesdomxml_attributes() 
childrendomxml_children() 
choprtrim()基本语法
closeclosedir()基本语法
com_getcom_propget()COM
com_propsetcom_propput()COM
com_setcom_propput()COM
dieexit()杂类函数
dirgetdir()基本语法
diskfreespacedisk_free_space()文件系统函数
domxml_getattrdomxml_get_attribute() 
domxml_setattrdomxml_set_attribute() 
doublevalfloatval()基本语法
drawarcswfshape_drawarc()Ming (flash)
drawcircleswfshape_drawcircle()Ming (flash)
drawcubicswfshape_drawcubic()Ming (flash)
drawcubictoswfshape_drawcubicto()Ming (flash)
drawcurveswfshape_drawcurve()Ming (flash)
drawcurvetoswfshape_drawcurveto()Ming (flash)
drawglyphswfshape_drawglyph()Ming (flash)
drawlineswfshape_drawline()Ming (flash)
drawlinetoswfshape_drawlineto()Ming (flash)
dtddomxml_intdtd() 
dumpmemdomxml_dumpmem() 
fbsqlfbsql_db_query()FrontBase
fputsfwrite()基本语法
get_attributedomxml_get_attribute() 
getascentswffont_getAscent()Ming (flash)
getascentswftext_getAscent()Ming (flash)
getattrdomxml_get_attribute() 
getdescentswffont_getDescent()Ming (flash)
getdescentswftext_getDescent()Ming (flash)
getheightswfbitmap_getHeight()Ming (flash)
getleadingswffont_getLeading()Ming (flash)
getleadingswftext_getLeading()Ming (flash)
getshape1swfmorph_getShape1()Ming (flash)
getshape2swfmorph_getShape2()Ming (flash)
getwidthswfbitmap_getWidth()Ming (flash)
getwidthswffont_getWidth()Ming (flash)
getwidthswftext_getWidth()Ming (flash)
gzputsgzwrite()Zlib
i18n_convertmb_convert_encoding()多字节字符串函数
i18n_discover_encodingmb_detect_encoding()多字节字符串函数
i18n_http_inputmb_http_input()多字节字符串函数
i18n_http_outputmb_http_output()多字节字符串函数
i18n_internal_encodingmb_internal_encoding()多字节字符串函数
i18n_ja_jp_hantozenmb_convert_kana()多字节字符串函数
i18n_mime_header_decodemb_decode_mimeheader()多字节字符串函数
i18n_mime_header_encodemb_encode_mimeheader()多字节字符串函数
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()基本语法
is_doubleis_float()基本语法
is_integeris_int()基本语法
is_longis_int()基本语法
is_realis_float()基本语法
is_writeableis_writable()基本语法
joinimplode()基本语法
key_existsarray_key_exists()基本语法
labelframeswfmovie_labelFrame()Ming (flash)
labelframeswfsprite_labelFrame()Ming (flash)
last_childdomxml_last_child() 
lastchilddomxml_last_child() 
ldap_closeldap_unbind()LDAP
magic_quotes_runtimeset_magic_quotes_runtime()基本语法
mbstrcutmb_strcut()多字节字符串函数
mbstrlenmb_strlen()多字节字符串函数
mbstrposmb_strpos()多字节字符串函数
mbstrrposmb_strrpos()多字节字符串函数
mbsubstrmb_substr()多字节字符串函数
ming_setcubicthresholdming_setCubicThreshold()Ming (flash)
ming_setscaleming_setScale()Ming (flash)
moveswfdisplayitem_move()Ming (flash)
movepenswfshape_movepen()Ming (flash)
movepentoswfshape_movepento()Ming (flash)
movetoswfdisplayitem_moveTo()Ming (flash)
movetoswffill_moveTo()Ming (flash)
movetoswftext_moveTo()Ming (flash)
msqlmsql_db_query()mSQL
msql_createdbmsql_create_db()mSQL
msql_dbnamemsql_result()mSQL
msql_dropdbmsql_drop_db()mSQL
msql_fieldflagsmsql_field_flags()mSQL
msql_fieldlenmsql_field_len()mSQL
msql_fieldnamemsql_field_name()mSQL
msql_fieldtablemsql_field_table()mSQL
msql_fieldtypemsql_field_type()mSQL
msql_freeresultmsql_free_result()mSQL
msql_listdbsmsql_list_dbs()mSQL
msql_listfieldsmsql_list_fields()mSQL
msql_listtablesmsql_list_tables()mSQL
msql_numfieldsmsql_num_fields()mSQL
msql_numrowsmsql_num_rows()mSQL
msql_regcasesql_regcase()mSQL
msql_selectdbmsql_select_db()mSQL
msql_tablenamemsql_result()mSQL
mssql_affected_rowssybase_affected_rows()Sybase
mssql_affected_rowssybase_affected_rows()Sybase
mssql_closesybase_close()Sybase
mssql_closesybase_close()Sybase
mssql_connectsybase_connect()Sybase
mssql_connectsybase_connect()Sybase
mssql_data_seeksybase_data_seek()Sybase
mssql_data_seeksybase_data_seek()Sybase
mssql_fetch_arraysybase_fetch_array()Sybase
mssql_fetch_arraysybase_fetch_array()Sybase
mssql_fetch_fieldsybase_fetch_field()Sybase
mssql_fetch_fieldsybase_fetch_field()Sybase
mssql_fetch_objectsybase_fetch_object()Sybase
mssql_fetch_objectsybase_fetch_object()Sybase
mssql_fetch_rowsybase_fetch_row()Sybase
mssql_fetch_rowsybase_fetch_row()Sybase
mssql_field_seeksybase_field_seek()Sybase
mssql_field_seeksybase_field_seek()Sybase
mssql_free_resultsybase_free_result()Sybase
mssql_free_resultsybase_free_result()Sybase
mssql_get_last_messagesybase_get_last_message()Sybase
mssql_get_last_messagesybase_get_last_message()Sybase
mssql_min_client_severitysybase_min_client_severity()Sybase
mssql_min_error_severitysybase_min_error_severity()Sybase
mssql_min_message_severitysybase_min_message_severity()Sybase
mssql_min_server_severitysybase_min_server_severity()Sybase
mssql_num_fieldssybase_num_fields()Sybase
mssql_num_fieldssybase_num_fields()Sybase
mssql_num_rowssybase_num_rows()Sybase
mssql_num_rowssybase_num_rows()Sybase
mssql_pconnectsybase_pconnect()Sybase
mssql_pconnectsybase_pconnect()Sybase
mssql_querysybase_query()Sybase
mssql_querysybase_query()Sybase
mssql_resultsybase_result()Sybase
mssql_resultsybase_result()Sybase
mssql_select_dbsybase_select_db()Sybase
mssql_select_dbsybase_select_db()Sybase
multcolorswfdisplayitem_multColor()Ming (flash)
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
namedomxml_attrname() 
new_childdomxml_new_child() 
new_xmldocdomxml_new_xmldoc() 
nextframeswfmovie_nextFrame()Ming (flash)
nextframeswfsprite_nextFrame()Ming (flash)
nodedomxml_node() 
ociassignelemOCI-Collection::assignElemOCI8
ocibindbynameoci_bind_by_name()OCI8
ocicanceloci_cancel()OCI8
ocicloselobOCI-Lob::closeOCI8
ocicollappendOCI-Collection::appendOCI8
ocicollassignOCI-Collection::assignOCI8
ocicollmaxOCI-Collection::maxOCI8
ocicollsizeOCI-Collection::sizeOCI8
ocicolltrimOCI-Collection::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
ocifreecollectionOCI-Collection::freeOCI8
ocifreecursoroci_free_statement()OCI8
ocifreedescoci_free_descriptor()OCI8
ocifreestatementoci_free_statement()OCI8
ocigetelemOCI-Collection::getElemOCI8
ociinternaldebugoci_internal_debug()OCI8
ociloadlobOCI-Lob::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
ocisavelobOCI-Lob::saveOCI8
ocisavelobfileOCI-Lob::importOCI8
ociserverversionoci_server_version()OCI8
ocisetprefetchoci_set_prefetch()OCI8
ocistatementtypeoci_statement_type()OCI8
ociwritelobtofileOCI-Lob::exportOCI8
ociwritetemporarylobOCI-Lob::writeTemporaryOCI8
odbc_doodbc_exec()ODBC
odbc_field_precisionodbc_field_len()ODBC
outputswfmovie_output()Ming (flash)
parentdomxml_parent() 
pdf_add_outlinepdf_add_bookmark()PDF
pg_clientencodingpg_client_encoding()PostgreSQL
pg_setclientencodingpg_set_client_encoding()PostgreSQL
poscurrent()基本语法
recoderecode_string()Recode
removeswfmovie_remove()Ming (flash)
removeswfsprite_remove()Ming (flash)
rewindrewinddir()基本语法
rootdomxml_root() 
rotateswfdisplayitem_rotate()Ming (flash)
rotatetoswfdisplayitem_rotateTo()Ming (flash)
rotatetoswffill_rotateTo()Ming (flash)
saveswfmovie_save()Ming (flash)
savetofileswfmovie_saveToFile()Ming (flash)
scaleswfdisplayitem_scale()Ming (flash)
scaletoswfdisplayitem_scaleTo()Ming (flash)
scaletoswffill_scaleTo()Ming (flash)
set_attributedomxml_set_attribute() 
set_contentdomxml_set_content() 
setactionswfbutton_setAction()Ming (flash)
setattrdomxml_set_attribute() 
setbackgroundswfmovie_setBackground()Ming (flash)
setboundsswftextfield_setBounds()Ming (flash)
setcolorswftext_setColor()Ming (flash)
setcolorswftextfield_setColor()Ming (flash)
setdepthswfdisplayitem_setDepth()Ming (flash)
setdimensionswfmovie_setDimension()Ming (flash)
setdownswfbutton_setDown()Ming (flash)
setfontswftext_setFont()Ming (flash)
setfontswftextfield_setFont()Ming (flash)
setframesswfmovie_setFrames()Ming (flash)
setframesswfsprite_setFrames()Ming (flash)
setheightswftext_setHeight()Ming (flash)
setheightswftextfield_setHeight()Ming (flash)
sethitswfbutton_setHit()Ming (flash)
setindentationswftextfield_setIndentation()Ming (flash)
setleftfillswfshape_setleftfill()Ming (flash)
setleftmarginswftextfield_setLeftMargin()Ming (flash)
setlineswfshape_setline()Ming (flash)
setlinespacingswftextfield_setLineSpacing()Ming (flash)
setmarginsswftextfield_setMargins()Ming (flash)
setmatrixswfdisplayitem_setMatrix()Ming (flash)
setnameswfdisplayitem_setName()Ming (flash)
setnameswftextfield_setName()Ming (flash)
setoverswfbutton_setOver()Ming (flash)
setrateswfmovie_setRate()Ming (flash)
setratioswfdisplayitem_setRatio()Ming (flash)
setrightfillswfshape_setrightfill()Ming (flash)
setrightmarginswftextfield_setRightMargin()Ming (flash)
setspacingswftext_setSpacing()Ming (flash)
setupswfbutton_setUp()Ming (flash)
show_sourcehighlight_file ()基本语法
sizeofcount()基本语法
skewxswfdisplayitem_skewX()Ming (flash)
skewxtoswfdisplayitem_skewXTo()Ming (flash)
skewxtoswffill_skewXTo()Ming (flash)
skewyswfdisplayitem_skewY()Ming (flash)
skewytoswfdisplayitem_skewYTo()Ming (flash)
skewytoswffill_skewYTo()Ming (flash)
snmpwalkoidsnmprealwalk()SNMP
strchrstrstr()基本语法
streammp3swfmovie_streamMp3()Ming (flash)
swfactionswfaction_init()Ming (flash)
swfbitmapswfbitmap_init()Ming (flash)
swfbuttonswfbutton_init()Ming (flash)
swffillswffill_init()Ming (flash)
swffontswffont_init()Ming (flash)
swfgradientswfgradient_init()Ming (flash)
swfmorphswfmorph_init()Ming (flash)
swfmovieswfmovie_init()Ming (flash)
swfshapeswfshape_init()Ming (flash)
swfspriteswfsprite_init()Ming (flash)
swftextswftext_init()Ming (flash)
swftextfieldswftextfield_init()Ming (flash)
unlinkdomxml_unlink_node() 
xptr_new_contextxpath_new_context() 

To Top