Re: remove last character in a string
| From: | Evan Nemerson | Date: | Tue, 23 Apr 2002 13:50:03 +0000 |
| Subject: | Re: remove last character in a string | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-94156@lists.php.net to get a copy of this message | ||
Haha you wouldn't feel that way if you saw some of MY code... ;)
On Monday 22 April 2002 20:57 pm, you wrote:
> Because I'm kinda stupid. :)
>
> tyler
>
> ----- Original Message -----
> From: "Evan Nemerson" <evan@coeus-group.com>
> To: "Tyler Longren" <tyler@captainjack.com>; <php-general@lists.php.net>
> Sent: Monday, April 22, 2002 10:53 PM
> Subject: Re: [PHP] remove last character in a string
>
> > Why get strlen involved???
> >
> > $string = substr("$string", 0, -1);
> >
> >
> >
> > --
> > He is richest who is content with the least, for content is the wealth of
> > nature.
> >
> > Socrates
--
Who speaks of liberty while the human mind is in chains?
Francis Wright