if you're going to go the "break string in words" way, then try
$words = explode(" ", $string);

-----Original Message-----
From: Gaylen Fraley [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 15, 2001 2:54 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Controlling length of table data


This is really a combination html/php question, I believe.  The problem is
that I have a table that displays a field of text that can be several
hundred bytes long.  If, however, someone holds down a key and produces 500
letter 'x' the table data then distorts the table!  Since the length of the
data needs to be several hundred bytes, is there someway to either control
the table data width so that the length of a non breaking string of
characters will not distort the table, or is there a php string function to
break the sentence into words and then I'd have to build some logic to test
the length?

--
Gaylen
[EMAIL PROTECTED]
Home http://www.gaylenandmargie.com
PHP KISGB v2.22 Guestbook http://www.gaylenandmargie.com/phpwebsite




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to