资讯

PHP8.0新版本发布了两大新特性,今天分别多两种类型展开讨论。1、联合返回类型声明,允许返回多个可能返回的类型。<?phpclass Stu { // 参数为联合类型 public function add (int | float $a,int ...