RE: [PHP] removing chars from string
| From: | Jay Blanchard | Date: | Mon, 27 Jun 2005 15:37:23 +0000 |
| Subject: | RE: [PHP] removing chars from string | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-217689@lists.php.net to get a copy of this message | ||
[snip]
If a have a string thats 11 characters long how can I strip off the last
two characters?
[/snip]
$newString = substr($oldString, 0, 8);
echo $newString;