Php Mysql查询结果和str_替换
我有以下代码: 好的,这是工作;)我发明了……;)Php Mysql查询结果和str_替换,php,mysqli,str-replace,Php,Mysqli,Str Replace,我有以下代码: 好的,这是工作;)我发明了……;) 您正在反复替换原始字符串中的值$text应该是str_replace()的参数。I change{$source=str_replace($data['search']),($data['replace\u new']),$text);}echo($source)但我有未定义的变量$tekst。我不知道。对不起,我是php的新手。 search|replace_new Adam|John cat|dog
您正在反复替换原始字符串中的值$text
应该是str_replace()
的参数。I change{$source=str_replace($data['search']),($data['replace\u new']),$text);}echo($source)代码>但我有未定义的变量$tekst。我不知道。对不起,我是php的新手。
search|replace_new
Adam|John
cat|dog