Re: Re: String Manip. - Chop Equivalent
| From: | Robert Cummings | Date: | Mon, 24 Nov 2003 01:25:09 +0000 |
| Subject: | Re: Re: String Manip. - Chop Equivalent | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-170748@lists.php.net to get a copy of this message | ||
On Sun, 2003-11-23 at 20:02, Al wrote:
> >From the PHP Manual notes (http://us2.php.net/manual/en/function.chop.php):
>
> $string = substr("$string", 0, -1);
You'd be better off with:
$string = substr( $string, 0, -1 );
to avoid unnecessary interpolation overhead.
Cheers,
Rob.
--
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com
|
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'