RE: [PHP] remove last character in a string

From: Date: Tue, 23 Apr 2002 13:30:02 +0000
Subject: RE: [PHP] remove last character in a string
Groups: php.general 
Request: Send a blank email to php-general+get-94151@lists.php.net to get a copy of this message
> -----Original Message----- > From: Evan Nemerson [mailto:evan@coeus-group.com] > Sent: 23 April 2002 04:54 > > Why get strlen involved??? > > $string = substr("$string", 0, -1); Why get quotes involved??? $string = substr($string, 0, -1); Cheers! Mike --------------------------------------------------------------------- Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning & Information Services, JG125, James Graham Building, Leeds Metropolitan University, Beckett Park, LEEDS, LS6 3QS, United Kingdom Email: m.ford@lmu.ac.uk Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211

« previous php.general (#94151) next »