dav*_*ave -1 php variables types return function
以下面的代码为例:
<?php
function testing(){
echo 'testing';
return;
}
?>
Run Code Online (Sandbox Code Playgroud)
基于上面的代码,'返回'是什么类型的数据/变量?声明回归?
它回来了null.看这个演示
<?php
function test() {
return;
}
var_dump(test()); // NULL
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
75 次 |
| 最近记录: |