Logo

Programming-Idioms

History of Idiom 63 > diff from v27 to v28

Edit summary for version 28 by :
[PHP] The PHP manual documentation

Version 27

2016-02-22, 13:52:33

Version 28

2016-02-22, 13:58:01

Idiom #63 Replace fragment of a string

Assign to x2 the value of string x with all occurrences of y replaced by z.
Assume occurrences of y are not overlapping.

Idiom #63 Replace fragment of a string

Assign to x2 the value of string x with all occurrences of y replaced by z.
Assume occurrences of y are not overlapping.

Code
$x2 = str_replace($y, $z, $x);
Code
$x2 = str_replace($y, $z, $x);
Doc URL
http://php.net/manual/en/function.str-replace.php
Origin
http://php.net/manual/en/function.str-replace.php