Connecting Tech Pros Worldwide Help | Site Map

I need to display 20 characters for everyline from a longstring...?

Newbie
 
Join Date: Oct 2009
Posts: 1
#1: 3 Weeks Ago
Hi I have a string(coming from Mysql) and i want todisplay the string
below the Image but string is tooo long, so need a break after 20
characters,any one help me.
Dormilich's Avatar
Moderator
 
Join Date: Aug 2008
Location: Leipzig, Germany
Posts: 3,629
#2: 3 Weeks Ago

re: I need to display 20 characters for everyline from a longstring...?


you mean displaying only 20 characters (substr()) or adding line breaks (wordwrap())?
Reply

Tags
line break