>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 string?
>
> "Hello World" to "Hello Worl"
>
> Thanks in advance.

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

Reply via email to