Chopping off extra characters from input

From: Date: Mon, 12 Nov 2001 16:35:48 +0000
Subject: Chopping off extra characters from input
Groups: php.general 
Request: Send a blank email to php-general+get-74299@lists.php.net to get a copy of this message
I've got a problem where people are entering extra characters (due to an inonsistency in the tracking numbers they are being given) in a number they are entering in a form field. I have a PHP script querying a MySQL database. What's the easiest way to take the input and use only the first 8 characters? Any help is appreciated! Thanks, Rory

« previous php.general (#74299) next »