Hello,

Thomas Weidner wrote:
> there is a new proposal waiting for your comments:
> http://framework.zend.com/wiki/display/ZFPROP/Zend_Filter_StringLength+
> -+Thomas+Weidner
> 
> It will add the possibility to pad/extend and truncate a string to a
> given length by using filters.

I'd like to see a feature, which adds the possibility to truncate a string,
but keep whole words if I want that. For example, the string

"I have a brand-new red sports car." (34)

should be truncated after 25 chars. Currently, it would be

"I have a brand-new red sp"

but with this new feature it would be

"I have a brand-new red..."

The ending "..." should be optionally added if you want it.

You understand me? I hope I didn't miss such an already existing feature ;-)


-- 
Regards,
Thomas


Reply via email to