note 4571 deleted from split by torben
| From: | torben@php.net | Date: | Sun, 10 Sep 2000 21:50:58 +0000 |
| Subject: | note 4571 deleted from split by torben | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-4673@lists.php.net to get a copy of this message | ||
I think for what you're probably trying to do, you should use substr:
$string = substr($var,0,10);
This will grab the first 10 characters.