Re: last three characters of a string
| From: | Jack Dempsey | Date: | Tue, 10 Apr 2001 03:00:10 +0000 |
| Subject: | Re: last three characters of a string | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-47928@lists.php.net to get a copy of this message | ||
echo "last 3 chars are " . substr($string,-3);
Joseph Bannon wrote:
>
> I need to examine the last 3 characters of a string. Is there code that does
> that?
>
> J
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net