How to copy a substring of a string
| From: | Carlos Fernando Scheidecker Antunes | Date: | Sun, 30 Dec 2001 00:28:57 +0000 |
| Subject: | How to copy a substring of a string | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-79037@lists.php.net to get a copy of this message | ||
Hello All,
I've been searching on the online documentation and I'm pretty sure I've done it
before but I don't recall how.
The problem is. I have a string with 17 characteres and I want to copy from the fourth character 6
characteres. Under Pascal I usually do copy(string,4,6). That means, copying from the fourth
characters a quantity of 6 characteres.
Is there any built in function that does that?
Could anyone tell me that?
Thanks,
Carlos Fernando.