首页 > php技术/ 正文
作废函数如下:
call_user_method()(使用 call_user_func() 替代)
call_user_method_array() (使用 call_user_func_array() 替代)
define_syslog_variables()
dl()
ereg() (使用 preg_match() 替代)
ereg_replace() (使用 preg_replace() 替代)
eregi() (使用 preg_match() 配合 ‘i’ 修正符替代)
eregi_replace() (使用 preg_replace() 配合 ‘i’ 修正符替代)
set_magic_quotes_runtime() 以及它的别名函数 magic_quotes_runtime()
[color=olive]session_register() (使用 $_SESSION 超全部变量替代)
session_unregister() (使用 $_SESSION 超全部变量替代)
session_is_registered() (使用 $_SESSION 超全部变量替代)
set_socket_blocking() (使用 stream_set_blocking() 替代)
split() (使用 preg_split() 替代)
spliti() (使用 preg_split() 配合 ‘i’ 修正符替代)
sql_regcase()
mysql_db_query() (使用 mysql_select_db() 和 mysql_query() 替代)
mysql_escape_string() (使用 mysql_real_escape_string() 替代)
废弃以字符串传递区域设置名称. 使用 LC_* 系列常量替代.
mktime() 的 is_dst 参数. 使用新的时区处理函数替代.
处理方法:editplus编辑器中,正则替换
替换ereg(),eregi():用preg_match替换
ereg\("([^"]+)"替换为:preg_match("/\1/"
ereg\('([^"]+)'替换为:preg_match('/\1/'
eregi\("([^"]+)"替换为:preg_match("/\1/i"
eregi\('([^"]+)'替换为:preg_match('/\1/i'
替换ereg_replace(),eregi_replace():用preg_replace()替换
ereg_replace\("([^"]+)"替换为:preg_replace("/\1/"
ereg_replace\('([^"]+)'替换为:preg_replace('/\1/'
ereg_ireplace\("([^"]+)"替换为:preg_replace("/\1/i"
ereg_ireplace\('([^"]+)'替换为:preg_replace('/\1/i'
如果 ereg_replace 的第一个参数不是正则表达式,可以用 str_replace 直接来替换
split用explode替换或preg_split替换
本文由软件培训网整理(http://www.softpeixun.com)!转载请注明!
- 上一篇:Php程序员入门的几点建议
- 下一篇:郑州php培训怎么样?
更多郑州电脑培训学校,洛阳的电脑培训学校,南阳计算机专科学校,南阳北大青鸟,南阳有哪些电脑学校,洛阳电脑培训学校相关文章
- Php程序员入门的几点建议
- 郑州php培训怎么样?
- 怎么判断php培训学校的好坏呢?
- 学PHP开发到培训学校有必要吗
- 河南最好的PHP培训学校在哪
- php入门教程之对象和资源
- PHP就业培训有哪些课程呢?
- 如何选择PHP培训机构
- 想学习PHP,该从哪里学?
- php的学习流程
- 用PHP建网站容易吗?
- 怎么使用Java实现面向对象编程
- php入门难不难?
- php好找工作吗?
- 怎么才能学好数据库?
- 数据库系统工程师
- php基础知识学习
- 数据库开发需要学好什么基础知识呢
- 郑州有数据库管理员的培训机构吗?
- access数据库的优点是什么?
- 数据库系统工程师的待遇怎么样啊?
- php大师告诉你如何优化php代码?
- 如何培养PHP编程技术的十大优良习惯
- PHP在Web网站开发领域的优势有哪些?
- PHP开发开发新手10个学习问题总结
- 搜索
-
- 热门标签