I'd probably use substr. For the first 30 characters plus three full 
stops (untested):
$shortstring = substr($longstring,0,30)."...";

The manual shows all the string handling functions 



Hawk wrote:

>Lets say I have a news text, and in a menu, I just want to print the first..
>lets say 30 letters, and maybe add a "..." after, and link it to the full

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to