惊风破浪的博客
PHP
MySQL
Redis
Linux
算法与设计模式
杂项
Golang
登录
PHP8的安装新特性
1个月前 ⋅
0
- windows下载 https://www.php.net/downloads 线程安全版本 - 找到php的包路径,加入环境变量; ##### `match流程:` ```php <?php $condition = 3; try { $res = match ($condition) { 1, 2 => "中奖了", 3, 4 => "未中奖", }; } catch (Exception $e) { var_dump($e); } print_r($res); ``` ##### `类型兼容,任意数量的函数参数都可以用一个可变参数替换` ```php class A { public function method(int $many, string $parameters, $here) { } } class B extends A { public function method(...$everything) { print_r($everything); } } ``` - 更多内容 http://www.php.net
回复
发布文章
友情链接
Mr.Zhu
Swoole
PHP官网
菜鸟教程
Go语言中文网
implode
数据结构与算法