useful recursive PHP functions

recursively ...

PHP Manual for

Appendix G. List of Function Aliases

Here is the aliases list. All aliases are listed here. It is usually a bad idea to use 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.

However, some functions simply have two names, and there is no real preference. (For example, is_int() and is_integer() are equally good)

This list is consistent with PHP 4.0.6. For an alias list that updates daily, have a look at http://zend.com/phpfunc/all_aliases.php.

Table G-1. Aliases

AliasMaster functionExtension used_ gettext() Gettextaddswfmovie_add() Ming (flash)addswfsprite_add() Ming (flash)add_rootdomxml_add_root() DOM XMLaddactionswfbutton_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() DOM XMLchildrendomxml_children() DOM XMLchop rtrim()Base syntaxclose closedir()Base syntaxcom_get com_propget() COMcom_propset com_propput() COMcom_set com_propput() COMcv_add ccvs_add() CCVScv_auth ccvs_auth() CCVScv_command ccvs_command() CCVScv_count ccvs_count() CCVScv_delete ccvs_delete() CCVScv_done ccvs_done() CCVScv_init ccvs_init() CCVScv_lookup ccvs_lookup() CCVScv_new ccvs_new() CCVScv_report ccvs_report() CCVScv_return ccvs_return() CCVScv_reverse ccvs_reverse() CCVScv_sale ccvs_sale() CCVScv_status ccvs_status() CCVScv_textvalue ccvs_textvalue() CCVScv_void ccvs_void() CCVSdie exit() Miscellaneous functionsdirgetdir()Base syntaxdiskfreespace disk_free_space() Filesystemdomxml_getattrdomxml_get_attribute() DOM XMLdomxml_setattrdomxml_set_attribute() DOM XMLdoubleval floatval()Base syntaxdrawarcswfshape_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() DOM XMLdumpmemdomxml_dumpmem() DOM XMLfbsql fbsql_db_query() FrontBasefputs fwrite()Base syntaxget_attributedomxml_get_attribute() DOM XMLgetascentswffont_getAscent() Ming (flash)getascentswftext_getAscent() Ming (flash)getattrdomxml_get_attribute() DOM XMLgetdescentswffont_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)gzputs gzwrite() Zlibi18n_convert mb_convert_encoding() Multi-bytes Stringsi18n_discover_encoding mb_detect_encoding() Multi-bytes Stringsi18n_http_input mb_http_input() Multi-bytes Stringsi18n_http_output mb_http_output() Multi-bytes Stringsi18n_internal_encoding mb_internal_encoding() Multi-bytes Stringsi18n_ja_jp_hantozen mb_convert_kana() Multi-bytes Stringsi18n_mime_header_decode mb_decode_mimeheader() Multi-bytes Stringsi18n_mime_header_encode mb_encode_mimeheader() Multi-bytes Stringsimap_create imap_createmailbox() IMAPimap_fetchtext imap_body() IMAPimap_getmailboxesimap_list_full() IMAPimap_getsubscribedimap_lsub_full() IMAPimap_header imap_headerinfo() IMAPimap_listmailbox imap_list() IMAPimap_listsubscribed imap_lsub() IMAPimap_rename imap_renamemailbox() IMAPimap_scan imap_listscan() IMAPimap_scanmailbox imap_listscan() IMAPini_alter ini_set()Base syntaxis_double is_float()Base syntaxis_integer is_int()Base syntaxis_long is_int()Base syntaxis_real is_float()Base syntaxis_writeable is_writable()Base syntaxjoin implode()Base syntaxlabelframeswfmovie_labelFrame() Ming (flash)labelframeswfsprite_labelFrame() Ming (flash)last_childdomxml_last_child() DOM XMLlastchilddomxml_last_child() DOM XMLldap_close ldap_unbind() LDAPmagic_quotes_runtime set_magic_quotes_runtime()Base syntaxmbstrcut mb_strcut() Multi-bytes Stringsmbstrlen mb_strlen() Multi-bytes Stringsmbstrpos mb_strpos() Multi-bytes Stringsmbstrrpos mb_strrpos() Multi-bytes Stringsmbsubstr mb_substr() Multi-bytes Stringsming_setcubicthreshold ming_setCubicThreshold() Ming (flash)ming_setscale ming_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)msql msql_db_query() mSQLmsql_createdb msql_create_db() mSQLmsql_dbname msql_result() mSQLmsql_dropdb msql_drop_db() mSQLmsql_fieldflags msql_field_flags() mSQLmsql_fieldlen msql_field_len() mSQLmsql_fieldname msql_field_name() mSQLmsql_fieldtable msql_field_table() mSQLmsql_fieldtype msql_field_type() mSQLmsql_freeresult msql_free_result() mSQLmsql_listdbs msql_list_dbs() mSQLmsql_listfields msql_list_fields() mSQLmsql_listtables msql_list_tables() mSQLmsql_numfields msql_num_fields() mSQLmsql_numrows msql_num_rows() mSQLmsql_regcase sql_regcase() mSQLmsql_selectdb msql_select_db() mSQLmsql_tablename msql_result() mSQLmssql_affected_rows sybase_affected_rows() Sybasemssql_affected_rows sybase_affected_rows() Sybasemssql_close sybase_close() Sybasemssql_close sybase_close() Sybasemssql_connect sybase_connect() Sybasemssql_connect sybase_connect() Sybasemssql_data_seek sybase_data_seek() Sybasemssql_data_seek sybase_data_seek() Sybasemssql_fetch_array sybase_fetch_array() Sybasemssql_fetch_array sybase_fetch_array() Sybasemssql_fetch_field sybase_fetch_field() Sybasemssql_fetch_field sybase_fetch_field() Sybasemssql_fetch_object sybase_fetch_object() Sybasemssql_fetch_object sybase_fetch_object() Sybasemssql_fetch_row sybase_fetch_row() Sybasemssql_fetch_row sybase_fetch_row() Sybasemssql_field_seek sybase_field_seek() Sybasemssql_field_seek sybase_field_seek() Sybasemssql_free_result sybase_free_result() Sybasemssql_free_result sybase_free_result() Sybasemssql_get_last_message sybase_get_last_message() Sybasemssql_get_last_message sybase_get_last_message() Sybasemssql_min_client_severity sybase_min_client_severity() Sybasemssql_min_error_severity sybase_min_error_severity() Sybasemssql_min_message_severity sybase_min_message_severity() Sybasemssql_min_server_severity sybase_min_server_severity() Sybasemssql_num_fields sybase_num_fields() Sybasemssql_num_fields sybase_num_fields() Sybasemssql_num_rows sybase_num_rows() Sybasemssql_num_rows sybase_num_rows() Sybasemssql_pconnect sybase_pconnect() Sybasemssql_pconnect sybase_pconnect() Sybasemssql_query sybase_query() Sybasemssql_query sybase_query() Sybasemssql_result sybase_result() Sybasemssql_result sybase_result() Sybasemssql_select_db sybase_select_db() Sybasemssql_select_db sybase_select_db() Sybasemultcolorswfdisplayitem_multColor() Ming (flash)mysql mysql_db_query() MySQLmysql_createdb mysql_create_db() MySQLmysql_db_name mysql_result() MySQLmysql_dbname mysql_result() MySQLmysql_dropdb mysql_drop_db() MySQLmysql_fieldflags mysql_field_flags() MySQLmysql_fieldlen mysql_field_len() MySQLmysql_fieldname mysql_field_name() MySQLmysql_fieldtable mysql_field_table() MySQLmysql_fieldtype mysql_field_type() MySQLmysql_freeresult mysql_free_result() MySQLmysql_listdbs mysql_list_dbs() MySQLmysql_listfields mysql_list_fields() MySQLmysql_listtables mysql_list_tables() MySQLmysql_numfields mysql_num_fields() MySQLmysql_numrows mysql_num_rows() MySQLmysql_selectdb mysql_select_db() MySQLmysql_tablename mysql_result() MySQLnamedomxml_attrname() DOM XMLnew_childdomxml_new_child() DOM XMLnew_xmldocdomxml_new_xmldoc() DOM XMLnextframeswfmovie_nextFrame() Ming (flash)nextframeswfsprite_nextFrame() Ming (flash)nodedomxml_node() DOM XMLoci8append ocicollappend() OCI8oci8assign ocicollassign() OCI8oci8assignelem ocicollassignelem() OCI8oci8close ocicloselob() OCI8oci8freeocifreecoll() OCI8oci8free ocifreedesc() OCI8oci8getelem ocicollgetelem() OCI8oci8load ociloadlob() OCI8oci8max ocicollmax() OCI8oci8ocifreecursor ocifreestatement() OCI8oci8save ocisavelob() OCI8oci8savefile ocisavelobfile() OCI8oci8size ocicollsize() OCI8oci8trim ocicolltrim() OCI8oci8writetemporary ociwritetemporarylob() OCI8oci8writetofile ociwritelobtofile() OCI8odbc_do odbc_exec() OCI8odbc_field_precision odbc_field_len() OCI8outputswfmovie_output() Ming (flash)parentdomxml_parent() DOM XMLpdf_add_outline pdf_add_bookmark() PDFpg_clientencoding pg_client_encoding() PostgreSQLpg_setclientencoding pg_set_client_encoding() PostgreSQLpos current()Base syntaxrecode recode_string() Recoderemoveswfmovie_remove() Ming (flash)removeswfsprite_remove() Ming (flash)rewind rewinddir()Base syntaxrootdomxml_root() DOM XMLrotateswfdisplayitem_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() DOM XMLset_contentdomxml_set_content() DOM XMLsetactionswfbutton_setAction() Ming (flash)setattrdomxml_set_attribute() DOM XMLsetbackgroundswfmovie_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 ()Base syntaxsizeof count()Base syntaxskewxswfdisplayitem_skewX() Ming (flash)skewxtoswfdisplayitem_skewXTo() Ming (flash)skewxtoswffill_skewXTo() Ming (flash)skewyswfdisplayitem_skewY() Ming (flash)skewytoswfdisplayitem_skewYTo() Ming (flash)skewytoswffill_skewYTo() Ming (flash)snmpwalkoid snmprealwalk() SNMPstrchr strstr()Base syntaxstreammp3swfmovie_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() DOM XMLxptr_new_context xpath_new_context() DOM XML

© 2012 lixlpixel