开发者

view($id = null) what does it mean?

开发者 https://www.devze.com 2023-02-17 06:03 出处:网络
function view($id = null) { 开发者_StackOverflow$this->Post->id = $id; What is the purpose of ($id = null)?It uses null as the default value for the function argument $id. See Default argumen
    function view($id = null) {
 开发者_StackOverflow   $this->Post->id = $id;

What is the purpose of ($id = null)?


It uses null as the default value for the function argument $id. See Default argument values for the details.

0

精彩评论

暂无评论...
验证码 换一张
取 消