Hi Stephen,

> I've seen this on a lot of news sites and such. How 
> can I display only so many characters, then put a "..." 
> to show that it's continued?

<?php

$story = "a really really really really long string";
$limit = 10; // how many chars to display

echo substr($story, 0, $limit). "...";

?>

Read all about it at http://php.net/substr

Cheers
Jon

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

Reply via email to