Re: Extracting first eight characters of a string
| From: | Adam Voigt | Date: | Thu, 07 Nov 2002 15:09:33 +0000 |
| Subject: | Re: Extracting first eight characters of a string | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-123170@lists.php.net to get a copy of this message | ||
Umm, this won't check, only blindly pull the first 8, but:
$cutsring = substr($originalstring,0,8);
Adam Voigt
adam.voigt@cryptocomm.com
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
>