View Full Version : text wrapping for a chat

12-19-2007, 10:11 PM
What i basically want to do is make it so when someone posts something really long(like a link), it wont stretch the chat and make it so you have to scroll to see everything..

I was thinking something like:

split $text somehow

How would that be accomplished?

12-19-2007, 10:19 PM
PHP is so awesome, it has a function for you already:

wordwrap() (http://us3.php.net/manual/en/function.wordwrap.php)

12-19-2007, 10:42 PM
i love you :P haha thanks :)

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum