RE: [PHP] Controlling length of table data

From: Date: Thu, 15 Nov 2001 04:05:33 +0000
Subject: RE: [PHP] Controlling length of table data
Groups: php.general 
Request: Send a blank email to php-general+get-74661@lists.php.net to get a copy of this message
if you're going to go the "break string in words" way, then try $words = explode(" ", $string); -----Original Message----- From: Gaylen Fraley [mailto:gfraley5@earthlink.net] Sent: Thursday, November 15, 2001 2:54 PM To: php-general@lists.php.net 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 gfraley5@earthlink.net 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: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#74661) next »