O'Reilly logo

Programming PHP, 3rd Edition by Peter MacIntyre, Kevin Tatroe, Rasmus Lerdorf

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

substr_replace

Synopsis

string substr_replace(mixed string, mixed replace, mixed offset[, mixed length])

Replaces a substring in string with replace. The substring replaced is selected using the same rules as those of substr(). If string is an array, replacements take place on each string within the array. In this case, replace, offset, and length can either be scalar values, which are used for all strings in string, or arrays of values to be used for each corresponding value in string.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required