Re: sprintf

From: Date: Wed, 06 Mar 2002 20:43:11 +0000
Subject: Re: sprintf
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-12492@lists.php.net to get a copy of this message
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


« previous php.windows (#12492) next »