php substr_replace () function syntax

php substr_replace () function syntax

Action: replacement string of a string to another string marble platform Price

语法:substr_replace(string,replacement,start,length)

parameter:

parameter description
string     essential. Specifies the string to check.
replacement  essential. Specifies the string to be inserted.
start     essential. Where to begin replacing the provisions of the string. Positive number - Specifies the start position in the string Alternatively, negative - Replace the start end of the string at the specified position, 0 - the first character in the string starts replaced.
length     Optional. Specifies how many characters you want to replace. The default is the same as the length of the string. Positive - length of the string to be replaced, a negative - represents a substring at the end of the number of characters to be replaced from the end of the string. 0 - insert rather than replacing

Description: the replacement string as part of another string. If the start parameter is negative and less than or equal length start, the length is zero. This function is binary safe.

Guess you like

Origin www.cnblogs.com/furuihua/p/11889577.html