note 30353 deleted from function.strrev by didou
| From: | didou@php.net | Date: | Fri, 24 Oct 2003 08:10:32 +0000 |
| Subject: | note 30353 deleted from function.strrev by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-59207@lists.php.net to get a copy of this message | ||
Note Submitter:
----
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);