function some ($html, $name) {
return $html;
}
$outer_html = "<div>".$name."</div>";
echo some($outer_html, "Jon");
我明白我得到Notice: Undefined variable: name in
但是如何设置函数参数,它本身包含其他参数?
我想做这个是因为,我需要生成$outer_html
函数,然后设置这个准备好的 html 代码来运行。