[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, 
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.



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 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.





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]