Re: Best way to read first 20 characters of a string?
| From: | Chris Payne | Date: | Wed, 02 Dec 2009 15:31:54 +0000 |
| Subject: | Re: Best way to read first 20 characters of a string? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-300215@lists.php.net to get a copy of this message | ||
Thank you everyone, I REALLY appreciate it. Sorry my head isn't in
place today and I couldn't think.
Chris
On Wed, Dec 2, 2009 at 10:18 AM, Devendra Jadhav <devendra.in@gmail.com> wrote:
> mysql substr function
>
> http://dev.mysql.com/doc/refman/5.0/en/string-functions.html#function_substr
>
> On Wed, Dec 2, 2009 at 8:41 PM, Chris Payne <chris_payne@danmangames.com>
> wrote:
>>
>> 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
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>
>
>
> --
> Devendra Jadhav
> देवेंद्र जाधव
>