[PHP] How to copy a substring of a string

2001-12-29 Thread Carlos Fernando Scheidecker Antunes
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,

Re: [PHP] How to copy a substring of a string

2001-12-29 Thread Gerard Onorato
http://www.php.net/manual/en/function.substr.php On Sat, 29 Dec 2001 18:28:57 -0600, Carlos Fernando Scheidecker Antunes wrote: 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