> -----Original Message-----
> I'm wondering if anyone else on the list has worked out a way of
> intelligently truncating a string to take these kinds of 
> occurrences into
> account? I don't mind, in these situations if the truncation 
> takes place
> before or after the entity, since when displayed it will only 
> equate to one
> character more or less.

Check out the user contributed notes in manual for substr.  There's an
example there of how to keep words intact and it sounds like it might apply
to your situation.

Ed Lazor, President
http://RPGStore.com
Up to 50% off.  Over 20,000 items in stock 

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

Reply via email to