Jump to content

help needed


weballergy

Recommended Posts

hi all,

I wrote this fucn which supposed to clean up the text from forbidden words -if such found they are replaced with "****"
for some reason it wont work...

function CleanLng(&$string)
{
$string=explode(" ",$string);

$size=sizeof($string);
//check each word if "dirty"
for($i=0;$i<$size;++$i)
{
if(!strcmp($string[$i],DIRTY_WORD))
$string[$i]="****";


}

$string=implode(" ",$string);

}

10x for help
Link to comment
https://forums.phpfreaks.com/topic/30807-help-needed/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.