1、丢弃
https://www.php.net/manual/zh/migration80.deprecated.php
2、函数默认值
function abc($a=1, $b, $c)
function abc($a=1, $b=2, $c=3)
3、count必须是Countable|array 类型,使用is_countable判断
博客围绕 PHP 展开,提及 PHP 8.0 中被丢弃的内容,给出相关链接。还介绍了函数默认值的设置方式,以及 count 函数参数必须为 Countable|array 类型,可使用 is_countable 判断,并给出对应手册链接。
1、丢弃
https://www.php.net/manual/zh/migration80.deprecated.php
2、函数默认值
function abc($a=1, $b, $c)
function abc($a=1, $b=2, $c=3)
3、count必须是Countable|array 类型,使用is_countable判断
4077
5436
5492

被折叠的 条评论
为什么被折叠?