更新时间:2023-02-02 21:10:42
嘿,它们几乎是相同的。您可能想在第一个示例中取消设置
$ content
,因为第二个示例仅将局部变量创建为第一个参数 removebadstuff
。
hey are nearly identical. You might want to unset
$content
in the first example as the second example only creates the local variable as the first parameter of removebadstuff
.
请记住 PHP中的字符串是二进制安全的。
必读: 最终的清理/安全功能