On Sun, 2003-11-23 at 20:02, Al wrote:
> >From the PHP Manual notes (http://us2.php.net/manual/en/function.chop.php):
>
> $string = substr("$string", 0, -1);
You'd be better off with:
$string = substr( $string, 0, -1 );
to avoid unnecessary interpolation overhead.
Cheers,
Rob.
--
.---
>From the PHP Manual notes (http://us2.php.net/manual/en/function.chop.php):
$string = substr("$string", 0, -1);
Al
"Jed R. Brubaker" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Does PHP have an equivalent to PERL's chop - that is, a way to get rid of
> the last character in a
Jed R. Brubaker wrote:
Does PHP have an equivalent to PERL's chop - that is, a way to get rid of
the last character in a string?
"Hello World" to "Hello Worl"
Thanks in advance.
this might work, haven't tested it...
second param is optional
function chop($strSubject, $intWastage = 1) {
$strRes
3 matches
Mail list logo