PHP substr_replace () function syntax
Substr_replace (String,replacement,start,length)
Parameters |
Description |
String |
Necessary. Specifies the string to check. |
Replacement |
Necessary. Specifies the string to insert. |
Start |
Necessary. Specifies where the string begins to be replaced.
- Positive number-starts with the first offset
- Negative number-replaces the start offset starting at the end of a string
- 0-Start the substitution at the first character in the string
|
Charlist |
Optional. Specifies the number of characters to replace.
- Positive number-The length of the string being replaced
- Negative-the number of characters to be replaced starting at the end of the string
- 0-Insert rather than replace
|
http://www.bkjia.com/PHPjc/364579.html www.bkjia.com true http://www.bkjia.com/PHPjc/364579.html techarticle The PHP substr_replace () function Syntax Substr_replace (string,replacement,start,length) parameter describes the string required. Specifies the string to check. Replacement required. Rule to insert ...