PHP 7 详解
  • 介绍
  • PHP 7 安装
  • PHP 7.0.x 新特性
    • OOP 特性
      • 类型声明
      • 命名空间与use关键词批量声明
      • 匿名类
      • Throwable 接口
    • 新增操作符
      • 太空飞船操作符(<=>)
      • null 合并运算符(??)
    • 统一变量语法
    • 其他特性和变更
      • 常量数组
      • Switch 中的多个default默认值
      • Session_start 函数中的参数数组
      • Unserialize 函数引入过滤器
      • 整数除法函数 intdiv()
      • 补充*其他特性和变更
    • 补充*新函数
    • 补充*新的全局常量
    • 补充*变更的函数
    • 补充*摒弃一些老式的写法
    • 补充*不向后兼容的变更
    • 补充*在SAPI模块的变化
    • 补充*PHP7底层性能优化
  • PHP 7.1.x 新特性
    • 新特性
      • 可为空(Nullable)类型
      • 对称阵列解构
      • Void 函数
      • 类常量访问权限控制
      • 多异常捕获处理
      • list()现在支持键名
      • 支持为负的字符串偏移量
      • 补充*其他特性与变更
    • 补充*新的函数
    • 补充*新增的全局常量
    • 补充:不向后兼容的变更
    • 补充*废弃的特性
    • 补充*变更的函数
    • 补充*其他的变更
  • PHP7 开发工具
    • Eclipse 安装与配置
  • PHP 标准规范及开发技巧
    • PHP 标准规范 - PSR
    • PHP 开发技巧
    • 面向对象编程的基本原则
  • PHP7调试与性能分析
    • 调试 - Xdebug安装配置
      • 使用Eclipse调试
    • 性能分析 - Xhprof
    • 性能分析 - Vld
  • 附录*Ubuntu环境php开发配置
  • 附录*使用php开发扩展
  • 附录*浏览器插件
  • 附录*第三方类库
  • 附录*小问题整理
  • 附录*资料*工具
  • 附录*Composer
  • 附录*前端
  • 附录*进程
  • 附录*PHP的ticks机制
  • 附录* 通过composer发布自己的包
  • 附录*字符编码问题
  • 附录*注释
Powered by GitBook
On this page
  • 新函数
  • Closure
  • CSPRNG
  • Error Handling and Logging
  • Generator
  • GNU Multiple Precision
  • Math
  • PCRE
  • PHP Options/Info
  • POSIX
  • Reflection
  • Zip - 此扩展可以让你透明地读写ZIP压缩文档以及它们里面的文件。
  • Zlib Compression

Was this helpful?

  1. PHP 7.0.x 新特性

补充*新函数

Previous补充*其他特性和变更Next补充*新的全局常量

Last updated 6 years ago

Was this helpful?

参考:

新函数

  • Closure::call()

  • Generator::getReturn()

- 整除运算

- 此扩展可以让你透明地读写ZIP压缩文档以及它们里面的文件。

New functions
Closure
CSPRNG
random_bytes()
random_int()
Error Handling and Logging
error_clear_last()
Generator
GNU Multiple Precision
gmp_random_seed()
Math
intdiv()
PCRE
preg_replace_callback_array()
PHP Options/Info
gc_mem_caches()
get_resources()
POSIX
posix_setrlimit()
Reflection
ReflectionParameter::getType()
ReflectionParameter::hasType()
ReflectionFunctionAbstract::getReturnType()
ReflectionFunctionAbstract::hasReturnType()
Zip
ZipArchive::setCompressionIndex()
ZipArchive::setCompressionName()
Zlib Compression
inflate_add()
deflate_add()
inflate_init()
deflate_init()