note 11386 added to substr
| From: | elf at messer dot de | Date: | Mon, 19 Feb 2001 08:52:25 +0000 |
| Subject: | note 11386 added to substr | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-11240@lists.php.net to get a copy of this message | ||
The same without "strlen":
$new = substr($old, 0, -1);
http://www.php.net/manual/en/function.substr.php