note 28455 added to function.substr
| From: | imho@php.net | Date: | Tue, 14 Jan 2003 01:07:03 +0000 |
| Subject: | note 28455 added to function.substr | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-42090@lists.php.net to get a copy of this message | ||
To remove the last character from a string, one would use the code:
$newstring = substr($oldstring, 0, -1);
--
http://www.php.net/manual/en/function.substr.php
http://master.php.net/manage/user-notes.php?action=edit+28455
http://master.php.net/manage/user-notes.php?action=delete+28455
http://master.php.net/manage/user-notes.php?action=reject+28455