Lines Matching refs:str_replace
2 Test str_replace() function
16 var_dump( str_replace(array("a", "a", "b"),
22 var_dump( str_replace(array("a", "a", "b"),
60 var_dump(str_replace("$obj_search", "$obj_replace", "$obj_subject", $count));
65 var_dump(str_replace(array("a", "a", "b"), "multi", "aaa", $count));
68 var_dump(str_replace( array("a", "a", "b"),
75 var_dump(str_replace( array("a", "a", "b"),
84 str_replace("a", array("q", "q", "c"), array("aaa"), $count);
89 var_dump(str_replace("a", 1, array("aaa", "bbb"), $count));
92 var_dump(str_replace(1, 3, array("aaa1", "2bbb"), $count));
100 var_dump(str_replace("stream", "FOUND", $resource1, $count));
105 var_dump(str_replace("stream", "FOUND", $resource2, $count));
124 var_dump( str_replace("abcdef", "FOUND", $string, $count) );
130 var_dump( str_replace("", "FOUND", $str, $count) );
138 var_dump( str_replace("world", "FOUND", "$str") );
139 var_dump( str_replace("world'S", "FOUND", "$str'S") );
140 var_dump( str_replace("worldS", "FOUND", "$strS") );
143 var_dump( str_replace("worldS", "FOUND", "${str}S") );
144 var_dump( str_replace("worldS", "FOUND", "{$str}S") );
183 str_replace(): Argument #2 ($replace) must be of type string when argument #1 ($search) is a string
200 str_replace(): Argument #3 ($subject) must be of type array|string, resource given
201 str_replace(): Argument #3 ($subject) must be of type array|string, resource given