php 7 废弃了以下特性和函数:函数:create_function、eregereg_replace、eregi、eregi_replace、split、eachmysql 扩展:mysql_connect、mysql_pconnect、mysql_list_dbs、mysql_list_fields、mysql_list_processes、mysql_list_tables、mysql_fetch_field、mysql_fetch_row、mysql_fetch_array、mysql
PHP 7 废弃了什么?
PHP 7 相比于之前的 PHP 版本做出了重大的改进,同时废弃了一些过时的特性和函数。以下列出 PHP 7 废弃的主要内容:
函数
- create_function
- ereg
- ereg_replace
- eregi
- eregi_replace
- split
- each
- mysql_connect
- mysql_pconnect
- mysql_list_dbs
- mysql_list_fields
- mysql_list_processes
- mysql_list_tables
- mysql_fetch_field
- mysql_fetch_row
- mysql_fetch_array
- mysql_fetch_assoc
- mysql_fetch_object
- mysql_freeresult
- mysql_query
- mysql_num_rows
- mysql_num_fields
- mysql_affected_rows
- mysql_close
- mysql_error
- mysql_errno
- mysql_insert_id
- mysql_fieldname
- mysql_fieldtype
- mysql_fieldflags
- mysql_fieldlen
- mysql_seek
- mysql_data_seek
- mysql_free_result
- mysql_db_query
- mysql_escape_string
- mysql_real_escape_string
- pg_connect
- pg_pconnect
- pg_close
- pg_query
- pg_fetch_row
- pg_fetch_array
- pg_fetch_object
- pg_fetch_assoc
- pg_affected_rows
- pg_last_error
- pg_last_notice
- pg_num_rows
- pg_num_fields
- pg_field_name
- pg_field_type
- pg_free_result
- pg_result
- pg_fetch_result
- pg_lo_open
- pg_lo_close
- pg_lo_read
- pg_lo_write
- pg_lo_seek
- pg_lo_tell
- pg_lo_unlink
- register_tick_function
- mcrypt_cbc
- mcrypt_cfb
- mcrypt_ofb
- mcrypt_ecb
- mcrypt_list_algorithms
- mcrypt_list_modes
常量
- CASE_LOWER
- CASE_UPPER
特性
- register_globals
其他
- PHP 4 风格的构造函数
- list($a, $b) 语法,建议使用 [$a, $b] =
- 匿名函数的 use 变量列表
以上就是php7废弃了哪些的详细内容,更多请关注叮当号网其它相关文章!
文章来自互联网,只做分享使用。发布者:城南北边,转转请注明出处:https://www.dingdanghao.com/article/662315.html