This one time, at band camp,
Douglas Douglas <[EMAIL PROTECTED]> wrote:
> Good day.
>
> Is there any PHP function that removes only the last
> character of a string and returns the new string?
$new = substr("$string", 0, -1);
Kevin
--
______
(_____ \
_____) ) ____ ____ ____ ____
| ____/ / _ ) / _ | / ___) / _ )
| | ( (/ / ( ( | |( (___ ( (/ /
|_| \____) \_||_| \____) \____)
Kevin Waterson
Port Macquarie, Australia
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php