Not sure exactly what you mean by "from a wordwrap", but if looking to simply remove words from a string (such as profanity) it's easy enough:
$badWords[] = " bad1";
$badWords[] = " bad1";
$badWords[] = " bad2";
$badWords[] = " bad3";
$badWords[] = " bad5";
//etc......
while (list($key,$var) = each($badWords))
$str = str_replace($var, ' ?$@#%', $str);
If you're just wanting to prevent words from being split up in wrapped colums, lookup the wordwrap() function. The default setting is to preserve words whole.
HTH.
-geoff