weballergy Posted December 15, 2006 Share Posted December 15, 2006 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 More sharing options...
complex05 Posted December 15, 2006 Share Posted December 15, 2006 what's not working? What's happening in your script? Link to comment https://forums.phpfreaks.com/topic/30807-help-needed/#findComment-142038 Share on other sites More sharing options...
weballergy Posted December 15, 2006 Author Share Posted December 15, 2006 Man how embarrassing ,it does work...Seems like i needed to restart the browser 10x anyway Link to comment https://forums.phpfreaks.com/topic/30807-help-needed/#findComment-142046 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.