note 30353 added to function.strrev
| From: | php-general at lists dot php dot net | Date: | Fri, 14 Mar 2003 21:40:05 +0000 |
| Subject: | note 30353 added to function.strrev | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-45325@lists.php.net to get a copy of this message | ||
And to sum up, the last character can be found in either of the following four ways:
substr($string,-1);
substr($string, 0, -1);
substr( $string, -1, 1);
substr(strrev($string), 0, 1);
--
http://www.php.net/manual/en/function.strrev.php
http://master.php.net/manage/user-notes.php?action=edit+30353
http://master.php.net/manage/user-notes.php?action=delete+30353
http://master.php.net/manage/user-notes.php?action=reject+30353