Re: sprintf
| From: | Scott St. John | Date: | Wed, 06 Mar 2002 21:27:01 +0000 |
| Subject: | Re: sprintf | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-12495@lists.php.net to get a copy of this message | ||
Mike:
Yeah (hitting head on wall), that will work! Thank you.
-Scott
On Wed, 6 Mar 2002, Mike Flynn wrote:
> One option is to use substr():
>
> $thestring = 'scott';
> $thestring = substr($thestring, 0, 3);
>
> At 03:02 PM 3/6/02 -0500, Scott St. John wrote:
> >I am trying to create a file in which each line is exactly 255 characters
> >long, some of the data I am importing is longer than the field allows.
> >Does anyone know of a way to strip that data off at x character? Example,
> >I have a 3 character field and the value being inserted into it is scott,
> >I would only display sco
> >
> >Thanks,
> >
> >-Scott
>
--