Re: Shortening a String
| From: | John W. Holmes | Date: | Wed, 29 Oct 2003 04:05:27 +0000 |
| Subject: | Re: Shortening a String | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-167967@lists.php.net to get a copy of this message | ||
Jason Williard wrote:
I would like to display part of the output of a query. In many cases, the string returned by this query exceeds 200 characters. Is there a way to cut it off after 200 characters? Even better, is there a way to cut it off at the next space after 200 characters?Read this thread for a lot of suggestions... http://forums.devshed.com/showthread.php?threadid=23711 -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com