Re: String Manip. - Chop Equivalent
| From: | Al | Date: | Mon, 24 Nov 2003 01:02:00 +0000 |
| Subject: | Re: String Manip. - Chop Equivalent | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-170745@lists.php.net to get a copy of this message | ||
From the PHP Manual notes (http://us2.php.net/manual/en/function.chop.php):
$string = substr("$string", 0, -1);
Al
"Jed R. Brubaker" <jedbrubaker@hotmail.com> wrote in message
news:20031123235152.55898.qmail@pb1.pair.com...
> 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.