RE: [PHP] seems easy...

2002-01-23 Thread Martin Towell
$limit = "5000"; if(strlen($text) > $limit) { $text = substr($text, 0, $limit); $text .= "...sorry, text was too long"; } -Original Message- From: Justin French [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 3:34 PM To: php Subject: [PHP] seems easy... Hi, Really

RE: [PHP] seems easy...

2002-01-23 Thread Jason Murray
> 1 $limit = "5000"; > 2 if(strlen($text) > $limit) > 3{ > 4 > 5$text .= "...sorry, text was too long"; > 6} 4$text = substr($text, 0, $limit); 5$text .= " ... (More)"; :) Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTE