|
|
1
2
您的回调函数看不到$config。必须将其作为参数传递或声明为全局
http://php.net/manual/en/language.variables.scope.php 作为旁白,您可以使用带有str_replace的数组
这样就避免了一个循环,这总是很好的。 |