Yeah, I thought about that and said to myself "That's not right".  But I had
already clicked the "Send" button and the message was no longer in my
outbox.  :)

tyler

----- Original Message -----
From: "Rasmus Lerdorf" <[EMAIL PROTECTED]>
To: "Tyler Longren" <[EMAIL PROTECTED]>
Cc: "Craig Westerman" <[EMAIL PROTECTED]>; "php-general-list"
<[EMAIL PROTECTED]>
Sent: Tuesday, April 23, 2002 12:04 AM
Subject: Re: [PHP] remove last character in a string


> No you don't.  You should go read the substr() docs as well:
>
>     substr($str,0,-1);
>
> -Rasmus
>
> On Mon, 22 Apr 2002, Tyler Longren wrote:
>
> > First, you'll need to get the length of the str with the str_len()
function.
> > After you have that, use the substr() function like Rasmus mentioned.
> >
> > Tyler Longren
> > Captain Jack Communications
> > www.captainjack.com
> > [EMAIL PROTECTED]
> >
> > ----- Original Message -----
> > From: "Craig Westerman" <[EMAIL PROTECTED]>
> > To: "php-general-list" <[EMAIL PROTECTED]>
> > Sent: Monday, April 22, 2002 10:26 PM
> > Subject: [PHP] remove last character in a string
> >
> >
> > > I have a string that ends in a comma. What is best method to remove
the
> > > comma?
> > >
> > > Craig ><>
> > > [EMAIL PROTECTED]
> > >
> >
> >
> >
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to