Re: Trimming 2 Characters from the end of a string?

From: Date: Mon, 21 May 2001 04:42:18 +0000
Subject: Re: Trimming 2 Characters from the end of a string?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-53670@lists.php.net to get a copy of this message
> What would be the syntax to trim 2 characters off of a given string? $new = substr($old,0,-2);

« previous php.general (#53670) next »