$text = $row['text'];
preg_replace("/^(.{0,100}.*?)(\s.*)?$/","\1",$text);
$text=preg_replace("/^(.{0,100}.*?)(\s.*)?$/","\1",$text);
--> http://de3.php.net/manual/en/function.preg-replace.php
$text = $row['text'];
preg_replace("/^(.{0,100}.*?)(\s.*)?$/","\1",$text);
$text=preg_replace("/^(.{0,100}.*?)(\s.*)?$/","\1",$text);
--> http://de3.php.net/manual/en/function.preg-replace.php