I don't know what to use 🙁
What do you guys think is the best ??
$input = preg_replace("/\b$correct\b/", asteriscos($correct), strtolower($input));
or
$input = str_replace($correct, asteriscos($correct), strtolower($input));
I don't need code just your opinion 🙂
BTW if you don't know why I'm asking this is because preg_replace will only replace the banned words and str_replace will replace password with p***word 😉