Here is the code for Remove Wrong Words From your website in php:
$string = "badworde you a badwords, hello badwordd..";
$a1=array("badworde","badwords", "badwordd");
$a2=array("beep","beep", "beep");
$result = str_replace($a1, $a2, $string);
echo $result;
$string = "badworde you a badwords, hello badwordd..";
$a1=array("badworde","badwords", "badwordd");
$a2=array("beep","beep", "beep");
$result = str_replace($a1, $a2, $string);
echo $result;
No comments:
Post a Comment