Re: last three characters of a string
| From: | Brian Clark | Date: | Tue, 10 Apr 2001 02:54:37 +0000 |
| Subject: | Re: last three characters of a string | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-47926@lists.php.net to get a copy of this message | ||
Hi Joseph,
@ 10:48:03 PM on 4/9/2001, Joseph Bannon wrote:
> I need to examine the last 3 characters of a string. Is there code
> that does that?
<?php
$str = 'php-general@lists.php.net';
print substr($str,-3,3);
?>
-Brian
--
PGP is spoken here: 0xE4D0C7C8
Please do not carbon copy me on list replies.