On the processing method of PHP5.3 void function

Source: Internet
Author: User
Tags ereg modifier variables regular expression split

The void function is as follows:

Call_user_method () (using Call_user_func () instead)

Call_user_method_array () (using Call_user_func_array () instead)

Define_syslog_variables ()

DL ()

Ereg () (using Preg_match () instead)

Ereg_replace () (using Preg_replace () instead)

Eregi () (using Preg_match () with ' i ' modifier substitution)

Eregi_replace () (using Preg_replace () with ' i ' modifier substitution)

Set_magic_quotes_runtime () and its alias function magic_quotes_runtime ()

[Color=olive]session_register () (Replace with $_session super full variable)

Session_unregister () (using $_session to override all variables)

Session_is_registered () (using $_session to override all variables)

Set_socket_blocking () (using stream_set_blocking () instead)

Split () (using Preg_split () instead)

Spliti () (using Preg_split () with ' i ' modifier substitution)

Sql_regcase ()

Mysql_db_query () (using mysql_select_db () and mysql_query () instead)

Mysql_escape_string () (using mysql_real_escape_string () instead)

Discards the locale name by passing the string. Replace with Lc_* series constants.

IS_DST parameter for Mktime (). Replace with the new time zone handler function.

Processing method: EditPlus Editor, regular substitution

Replace Ereg (), eregi (): Replace with Preg_match

Ereg\ ("(^"]+) "replaced by: Preg_match ("/\1/"

Ereg\ (' (^ "]+) ' is replaced by: Preg_match ('/\1/'

Eregi\ ("(^"]+) "replaced by: Preg_match ("/\1/i "

Eregi\ (' (^ "]+) ' is replaced by: Preg_match ('/\1/i '

Replace Ereg_replace (), Eregi_replace (): Replace with Preg_replace ()

Ereg_replace\ ("(^"]+) "replaced by: Preg_replace ("/\1/"

Ereg_replace\ (' (^ "]+) ' is replaced by: preg_replace ('/\1/'

Ereg_ireplace\ ("(^"]+) "replaced by: Preg_replace ("/\1/i "

Ereg_ireplace\ (' (^ "]+) ' is replaced by: preg_replace ('/\1/i '

If the first argument of Ereg_replace is not a regular expression, you can replace it with Str_replace directly

Split replace with explode or preg_split



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.