note 17510 added to ref.strings
| From: | pupeno at php2 dot chek dot com | Date: | Wed, 12 Dec 2001 08:17:52 +0000 |
| Subject: | note 17510 added to ref.strings | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-22538@lists.php.net to get a copy of this message | ||
I wrote a small function to remove the last nchars characters from the string $string:
function rmlstr($string, $nchars){
return strrev(substr(strrev($string),$nchars));
}
--
http://www.php.net/manual/en/ref.strings.php
http://master.php.net/manage/user-notes.php?action=edit+17510
http://master.php.net/manage/user-notes.php?action=delete+17510
http://master.php.net/manage/user-notes.php?action=reject+17510