Best way to read first 20 characters of a string?
| From: | Chris Payne | Date: | Wed, 02 Dec 2009 15:11:55 +0000 |
| Subject: | Best way to read first 20 characters of a string? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-300210@lists.php.net to get a copy of this message | ||
Hi everyone,
I'm pulling data from a mysql database, but need only the first 20
characters of each string for a short description, what is the best
method to just grab the first 20 characters from a string regardless
of whether they are letters or numbers?
Chris