文字

新参数

在 PHP 5.3 中一些函数新增了参数和选项:

PHP 核心:

  • clearstatcache() - 新增 clear_realpath_cachefilename 参数.
  • copy() - 新增流环境参数 context.
  • fgetcsv() - 新增 escape 参数.
  • ini_get_all() - 新增 details 参数.
  • nl2br() - 新增 is_xhtml 参数.
  • parse_ini_file() - 新增 scanner_mode 参数.
  • round() - 新增 mode 参数.
  • stream_context_create() - 新增 params 参数.
  • strstr() stristr() - 新增 before_needle 参数.

json:

  • json_encode() - 新增 options 参数.
  • json_decode() - 新增 depth 参数.

流(Streams):

  • stream_select() , stream_set_blocking() , stream_set_timeout() , 和 stream_set_write_buffer() 使用用户空间流包裹器.

sybase_ct:

  • sybase_connect() - 新增 new 参数.

PHP 5.3.0 中的新方法参数:

PHP 核心:

  • Exception::__construct() - 新增 previous 参数.
上一篇: 下一篇: