Home  >  Article  >  php教程  >  php5.3 废弃函数小结

php5.3 废弃函数小结

WBOY
WBOYOriginal
2016-06-13 12:15:481015browse

在php5.3被放弃的函数有:

ereg();//直接用mb_ereg代替,或是preg_match代替,但是匹配规则需要用/包括起来
eregi();//preg_match代替,在规则后加上i,如:preg_match(“/^(style|style_)(.*)*/i”, $file);
ereg_replace();
set_magic_quotes_runtime();
split();
mysql_close(); // 将不支持全部关闭, 需要改为:mysql_close($link);

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn