Problem in using wordwrap function

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
inpreet
Forum Newbie
Posts: 4
Joined: Fri Jul 16, 2004 12:48 am

Problem in using wordwrap function

Post by inpreet »

I am using wordwrap function to show long string in table's column with limited column sizebut the problem is that when i break string in 20 char strings javascript take this in single quotes 'stingABC' but in my case it dose not find ending quote
'StingAB
cvbn
ckjc'
and shows error unterminated string constant. what should I do?

Thanks for ur help in Advance
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Javascript doesn't support spanning strings. So you need to end the string for each line you created.
Post Reply