Re: [PHP-WIN] sprintf

2002-03-06 Thread Scott St. John
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 fi

Re: [PHP-WIN] sprintf

2002-03-06 Thread Mike Flynn
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 any

[PHP-WIN] sprintf

2002-03-06 Thread Scott St. John
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,