Re: Limit output of query field
| From: | Dan Anderson | Date: | Sat, 05 Jul 2003 14:04:13 +0000 |
| Subject: | Re: Limit output of query field | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-154051@lists.php.net to get a copy of this message | ||
Look up the function substr. It will allow you to create a string of
the first 50 chars from your 400 char string.
-Dan
On Sat, 2003-07-05 at 09:58, fkeessen@planet.nl wrote:
> Hi there,
>
> Hope you can help me with the following:
>
> I have a query and i'm showing the output:
>
> echo $row->text;
>
> That goes o.k. but the text is 400 characters long and I only one to show the first 50
> characters and at the end showing ... dot's..
>
> Help!
>
> Thank you very much!
>
> Frank
>
>
> ______________________________________________________________________
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php