note 24673 rejected from function.substr by betz

From: Date: Sun, 25 Aug 2002 14:17:26 +0000
Subject: note 24673 rejected from function.substr by betz
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-35583@lists.php.net to get a copy of this message
Any ideas on how to use this to truncate a string to a certain length. I have a field in a mysql table of type TEXT/BLOB... the length is not specified for such types but I would like to return only the first 220 characters. Any ideas. Thanks in advance.

« previous php.notes (#35583) next »