The general format when defining methods in php is function foo( arg1, arg2. . )
Written in the format
function foo(arg1=fal se, sscccarg2.
if($arg1 == true){
Execution condition 1
}
}
When the first $arg1 = false, it means when arg1 has no passed value,
The second one
arg1 ==truewhen, refers to iswhen( arg1 = false) is true
Personally, this is an idea of how to write
The above introduces an idea of defining methods in PHP, including aspects. I hope it will be helpful to friends who are interested in PHP tutorials.