Deprecated PHP functions and functions for substitution

Source: Internet
Author: User
Tags deprecated

Some of the deprecated functions are listed below:

Call_user_method () (use Call_user_func () instead)
Call_user_method_array () (use Call_user_func_array () instead)
Define_syslog_variables ()
DL ()
Ereg () (use Preg_match () instead)
Ereg_replace () (use Preg_replace () instead)
Eregi () (Replace with Preg_match () with ' i ' modifier)
Eregi_replace () (Replace with preg_replace () with ' i ' modifier)
Set_magic_quotes_runtime () and its alias function Magic_quotes_runtime () (set_magic_quotes_runtime (0) Use Ini_set ("Magic_quotes_ Runtime ", 0) replacement)
Session_register () (Replace with $_session all variables)
Session_unregister () (Replace with $_session all variables)
Session_is_registered () (Replace with $_session all variables)
Set_socket_blocking () (use Stream_set_blocking () instead)
Split () (using Preg_split () instead)
Spliti () (Replace with Preg_split () with ' i ' modifier)
Sql_regcase ()
Mysql_db_query () (Use mysql_select_db () and mysql_query () overrides)
Mysql_escape_string () (use Mysql_real_escape_string () instead)
Obsolete to pass the locale name as a string. Use the Lc_* series constants instead.
The IS_DST parameter of the Mktime (). Use the new time zone handler function to replace the

Deprecated PHP functions and functions for substitution

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.