Re: Stripping out last 3 characters??
| From: | Ulf Wendel | Date: | Fri, 08 Dec 2000 15:40:29 +0000 |
| Subject: | Re: Stripping out last 3 characters?? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-29365@lists.php.net to get a copy of this message | ||
Marcelo Gulin schrieb:
> function strip_chars( $strSource, $intCharsToStrip ) {
> $intLenSource = strlen( $strSource ) ;
> return( substr( $strSource, 0, $intLenSource - $intCharsToStrip ) ) ;
substr( $strSource, 0, -3);
http://www.php.net/manual/function.substr.php
Ulf
--
Ulf Wendel, NetUSE AG Siemenswall, D-24107 Kiel
Tel: +49 431 386 436 00, Fax: +49 431 386 435 99