附录
PHP Manual

函数别名列表

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

该列表基于 PHP 4.0.6。

别名列表
别名 主函数 使用的扩展模块
_ gettext() Gettext
add swfmovie_add() Ming (flash)
add swfsprite_add() Ming (flash)
add_root domxml_add_root() DOM XML
addaction swfbutton_addAction() Ming (flash)
addcolor swfdisplayitem_addColor() Ming (flash)
addentry swfgradient_addEntry() Ming (flash)
addfill swfshape_addfill() Ming (flash)
addshape swfbutton_addShape() Ming (flash)
addstring swftext_addString() Ming (flash)
addstring swftextfield_addString() Ming (flash)
align swftextfield_align() Ming (flash)
attributes domxml_attributes() DOM XML
children domxml_children() DOM XML
chop rtrim() 基本语法
close closedir() 基本语法
com_get com_propget() COM
com_propset com_propput() COM
com_set com_propput() COM
die exit() 杂类函数
dir getdir() 基本语法
diskfreespace disk_free_space() 文件系统函数
domxml_getattr domxml_get_attribute() DOM XML
domxml_setattr domxml_set_attribute() DOM XML
doubleval floatval() 基本语法
drawarc swfshape_drawarc() Ming (flash)
drawcircle swfshape_drawcircle() Ming (flash)
drawcubic swfshape_drawcubic() Ming (flash)
drawcubicto swfshape_drawcubicto() Ming (flash)
drawcurve swfshape_drawcurve() Ming (flash)
drawcurveto swfshape_drawcurveto() Ming (flash)
drawglyph swfshape_drawglyph() Ming (flash)
drawline swfshape_drawline() Ming (flash)
drawlineto swfshape_drawlineto() Ming (flash)
dtd domxml_intdtd() DOM XML
dumpmem domxml_dumpmem() DOM XML
fbsql fbsql_db_query() FrontBase
fputs fwrite() 基本语法
get_attribute domxml_get_attribute() DOM XML
getascent swffont_getAscent() Ming (flash)
getascent swftext_getAscent() Ming (flash)
getattr domxml_get_attribute() DOM XML
getdescent swffont_getDescent() Ming (flash)
getdescent swftext_getDescent() Ming (flash)
getheight swfbitmap_getHeight() Ming (flash)
getleading swffont_getLeading() Ming (flash)
getleading swftext_getLeading() Ming (flash)
getshape1 swfmorph_getShape1() Ming (flash)
getshape2 swfmorph_getShape2() Ming (flash)
getwidth swfbitmap_getWidth() Ming (flash)
getwidth swffont_getWidth() Ming (flash)
getwidth swftext_getWidth() Ming (flash)
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() 基本语法
labelframe swfmovie_labelFrame() Ming (flash)
labelframe swfsprite_labelFrame() Ming (flash)
last_child domxml_last_child() DOM XML
lastchild domxml_last_child() DOM XML
ldap_close ldap_unbind() LDAP
magic_quotes_runtime set_magic_quotes_runtime() 基本语法
mbstrcut mb_strcut() 多字节字符串函数
mbstrlen mb_strlen() 多字节字符串函数
mbstrpos mb_strpos() 多字节字符串函数
mbstrrpos mb_strrpos() 多字节字符串函数
mbsubstr mb_substr() 多字节字符串函数
ming_setcubicthreshold ming_setCubicThreshold() Ming (flash)
ming_setscale ming_setScale() Ming (flash)
move swfdisplayitem_move() Ming (flash)
movepen swfshape_movepen() Ming (flash)
movepento swfshape_movepento() Ming (flash)
moveto swfdisplayitem_moveTo() Ming (flash)
moveto swffill_moveTo() Ming (flash)
moveto swftext_moveTo() Ming (flash)
msql msql_db_query() mSQL
msql_createdb msql_create_db() mSQL
msql_dbname msql_result() mSQL
msql_dropdb msql_drop_db() mSQL
msql_fieldflags msql_field_flags() mSQL
msql_fieldlen msql_field_len() mSQL
msql_fieldname msql_field_name() mSQL
msql_fieldtable msql_field_table() mSQL
msql_fieldtype msql_field_type() mSQL
msql_freeresult msql_free_result() mSQL
msql_listdbs msql_list_dbs() mSQL
msql_listfields msql_list_fields() mSQL
msql_listtables msql_list_tables() mSQL
msql_numfields msql_num_fields() mSQL
msql_numrows msql_num_rows() mSQL
msql_regcase sql_regcase() mSQL
msql_selectdb msql_select_db() mSQL
msql_tablename msql_result() mSQL
mssql_affected_rows sybase_affected_rows() Sybase
mssql_affected_rows sybase_affected_rows() Sybase
mssql_close sybase_close() Sybase
mssql_close sybase_close() Sybase
mssql_connect sybase_connect() Sybase
mssql_connect sybase_connect() Sybase
mssql_data_seek sybase_data_seek() Sybase
mssql_data_seek sybase_data_seek() Sybase
mssql_fetch_array sybase_fetch_array() Sybase
mssql_fetch_array sybase_fetch_array() Sybase
mssql_fetch_field sybase_fetch_field() Sybase
mssql_fetch_field sybase_fetch_field() Sybase
mssql_fetch_object sybase_fetch_object() Sybase
mssql_fetch_object sybase_fetch_object() Sybase
mssql_fetch_row sybase_fetch_row() Sybase
mssql_fetch_row sybase_fetch_row() Sybase
mssql_field_seek sybase_field_seek() Sybase
mssql_field_seek sybase_field_seek() Sybase
mssql_free_result sybase_free_result() Sybase
mssql_free_result sybase_free_result() Sybase
mssql_get_last_message sybase_get_last_message() Sybase
mssql_get_last_message sybase_get_last_message() Sybase
mssql_min_client_severity sybase_min_client_severity() Sybase
mssql_min_error_severity sybase_min_error_severity() Sybase
mssql_min_message_severity sybase_min_message_severity() Sybase
mssql_min_server_severity sybase_min_server_severity() Sybase
mssql_num_fields sybase_num_fields() Sybase
mssql_num_fields sybase_num_fields() Sybase
mssql_num_rows sybase_num_rows() Sybase
mssql_num_rows sybase_num_rows() Sybase
mssql_pconnect sybase_pconnect() Sybase
mssql_pconnect sybase_pconnect() Sybase
mssql_query sybase_query() Sybase
mssql_query sybase_query() Sybase
mssql_result sybase_result() Sybase
mssql_result sybase_result() Sybase
mssql_select_db sybase_select_db() Sybase
mssql_select_db sybase_select_db() Sybase
multcolor swfdisplayitem_multColor() Ming (flash)
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
name domxml_attrname() DOM XML
new_child domxml_new_child() DOM XML
new_xmldoc domxml_new_xmldoc() DOM XML
nextframe swfmovie_nextFrame() Ming (flash)
nextframe swfsprite_nextFrame() Ming (flash)
node domxml_node() DOM XML
oci8append ocicollappend() OCI8
oci8assign ocicollassign() OCI8
oci8assignelem ocicollassignelem() OCI8
oci8close ocicloselob() OCI8
oci8free ocifreecoll() OCI8
oci8free ocifreedesc() OCI8
oci8getelem ocicollgetelem() OCI8
oci8load ociloadlob() OCI8
oci8max ocicollmax() OCI8
oci8ocifreecursor ocifreestatement() OCI8
oci8save ocisavelob() OCI8
oci8savefile ocisavelobfile() OCI8
oci8size ocicollsize() OCI8
oci8trim ocicolltrim() OCI8
oci8writetemporary ociwritetemporarylob() OCI8
oci8writetofile ociwritelobtofile() OCI8
odbc_do odbc_exec() ODBC
odbc_field_precision odbc_field_len() ODBC
output swfmovie_output() Ming (flash)
parent domxml_parent() DOM XML
pdf_add_outline pdf_add_bookmark() PDF
pg_clientencoding pg_client_encoding() PostgreSQL
pg_setclientencoding pg_set_client_encoding() PostgreSQL
pos current() 基本语法
recode recode_string() Recode
remove swfmovie_remove() Ming (flash)
remove swfsprite_remove() Ming (flash)
rewind rewinddir() 基本语法
root domxml_root() DOM XML
rotate swfdisplayitem_rotate() Ming (flash)
rotateto swfdisplayitem_rotateTo() Ming (flash)
rotateto swffill_rotateTo() Ming (flash)
save swfmovie_save() Ming (flash)
savetofile swfmovie_saveToFile() Ming (flash)
scale swfdisplayitem_scale() Ming (flash)
scaleto swfdisplayitem_scaleTo() Ming (flash)
scaleto swffill_scaleTo() Ming (flash)
set_attribute domxml_set_attribute() DOM XML
set_content domxml_set_content() DOM XML
setaction swfbutton_setAction() Ming (flash)
setattr domxml_set_attribute() DOM XML
setbackground swfmovie_setBackground() Ming (flash)
setbounds swftextfield_setBounds() Ming (flash)
setcolor swftext_setColor() Ming (flash)
setcolor swftextfield_setColor() Ming (flash)
setdepth swfdisplayitem_setDepth() Ming (flash)
setdimension swfmovie_setDimension() Ming (flash)
setdown swfbutton_setDown() Ming (flash)
setfont swftext_setFont() Ming (flash)
setfont swftextfield_setFont() Ming (flash)
setframes swfmovie_setFrames() Ming (flash)
setframes swfsprite_setFrames() Ming (flash)
setheight swftext_setHeight() Ming (flash)
setheight swftextfield_setHeight() Ming (flash)
sethit swfbutton_setHit() Ming (flash)
setindentation swftextfield_setIndentation() Ming (flash)
setleftfill swfshape_setleftfill() Ming (flash)
setleftmargin swftextfield_setLeftMargin() Ming (flash)
setline swfshape_setline() Ming (flash)
setlinespacing swftextfield_setLineSpacing() Ming (flash)
setmargins swftextfield_setMargins() Ming (flash)
setmatrix swfdisplayitem_setMatrix() Ming (flash)
setname swfdisplayitem_setName() Ming (flash)
setname swftextfield_setName() Ming (flash)
setover swfbutton_setOver() Ming (flash)
setrate swfmovie_setRate() Ming (flash)
setratio swfdisplayitem_setRatio() Ming (flash)
setrightfill swfshape_setrightfill() Ming (flash)
setrightmargin swftextfield_setRightMargin() Ming (flash)
setspacing swftext_setSpacing() Ming (flash)
setup swfbutton_setUp() Ming (flash)
show_source highlight_file () 基本语法
sizeof count() 基本语法
skewx swfdisplayitem_skewX() Ming (flash)
skewxto swfdisplayitem_skewXTo() Ming (flash)
skewxto swffill_skewXTo() Ming (flash)
skewy swfdisplayitem_skewY() Ming (flash)
skewyto swfdisplayitem_skewYTo() Ming (flash)
skewyto swffill_skewYTo() Ming (flash)
snmpwalkoid snmprealwalk() SNMP
strchr strstr() 基本语法
streammp3 swfmovie_streamMp3() Ming (flash)
swfaction swfaction_init() Ming (flash)
swfbitmap swfbitmap_init() Ming (flash)
swfbutton swfbutton_init() Ming (flash)
swffill swffill_init() Ming (flash)
swffont swffont_init() Ming (flash)
swfgradient swfgradient_init() Ming (flash)
swfmorph swfmorph_init() Ming (flash)
swfmovie swfmovie_init() Ming (flash)
swfshape swfshape_init() Ming (flash)
swfsprite swfsprite_init() Ming (flash)
swftext swftext_init() Ming (flash)
swftextfield swftextfield_init() Ming (flash)
unlink domxml_unlink_node() DOM XML
xptr_new_context xpath_new_context() DOM XML


附录
PHP Manual