Umm, this won't check, only blindly pull the first 8, but: $cutsring = substr($originalstring,0,8);
Adam Voigt [EMAIL PROTECTED] On Thu, 2002-11-07 at 10:06, John Meyer wrote: > How do I extract only the first eight characters (alpha-numeric) in a string. > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php