PHP str_replace 无法使用查询
PHP str_replace not working with query
我有这个:
$a = "t4.length = "50" AND t4.type = "F" AND (t3.minutes*60*1000+t3.seconds*1000+t3.milliseconds) < 22000";
我想用其他字符串替换这个字符串,我试过 str_replace 但是这个函数没有替换这个字符串。
我正在尝试这个。
$c = str_replace($a , '', $b);
密码错误
$c = str_replace($b , '', $a);
$b 是查找和替换的关键
''是替换
$a 将被替换
是我的错,还有其他多余的空格导致此功能无法正常工作。我截断了所有多余的空格然后它工作正常。
我有这个:
$a = "t4.length = "50" AND t4.type = "F" AND (t3.minutes*60*1000+t3.seconds*1000+t3.milliseconds) < 22000";
我想用其他字符串替换这个字符串,我试过 str_replace 但是这个函数没有替换这个字符串。
我正在尝试这个。
$c = str_replace($a , '', $b);
密码错误
$c = str_replace($b , '', $a);
$b 是查找和替换的关键
''是替换
$a 将被替换
是我的错,还有其他多余的空格导致此功能无法正常工作。我截断了所有多余的空格然后它工作正常。