...

View Full Version : text wrapping for a chat



king2k5
12-19-2007, 11: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:

if(strlen($text)>50){
split $text somehow
}

How would that be accomplished?

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

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

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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum