in reply to Re^3: how to shorten given string?
in thread how to shorten given string?

Just to understand better of the meanining of code i'm writing , nothing more :) Thank you all very much. Next thing to do would be including three dots like "..." after the shortened string, but if only the string was longer than given length. Like printing "Ipod batteries for Apple iPod...", because original string exceeded 30 chars. If the string fits under given amount of characters, it is displayed as is. I'll try to implement that now, but if you guys are faster, feel free, please :P