<snip> $string = substr($stringname,0,50); echo $string;
http://www.php.net/substr </snip> That will just give the first 50 characters of the string. You could just try one of the many suggestions on http://www.php.net/manual/en/function.str-word-count.php Scroll down to the user comments and there is a bunch of examples. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php