Top "Str-replace" questions

This function returns a string or an array with all occurrences of search in subject replaced with the given replace value.

PHP preg_replace/preg_match vs PHP str_replace

Can anyone give me a quick summary of the differences please? To my mind they both do the same thing? …

php preg-replace preg-match str-replace
Simple: How to replace "all between" with php?

$string = "<tag>i dont know what is here</tag>" $string = str_replace("???", "<tag></…

php replace str-replace
Replace multiple characters in a string variable (VBA)

How can I replace more than one thing in a string variable? Here my example function in VBA: Private Function …

excel vba str-replace
When to use strtr vs str_replace?

I'm having a hard time understanding when strtr would be preferable to str_replace or vice versa. It seems that …

php string str-replace strtr
Replace only the first character of a string with str_replace?

I'm trying to replace only the first character of a string, but it isn't working, it replaces all the "0" on …

php string str-replace
Using str_replace multiple times on the same string

I'm looping through a title from a table so it's essentially something along these lines. foreach($c as $row){ echo …

php str-replace
Replace string in a column using query in Oracle

In one of my oracle tables, in one column in every row there is a string 'House Name'. I need …

sql oracle str-replace
Replace all occurrences of a substring in a string in C

I'm trying to make a function in C to replace all occurrences of a substring in a string. I made …

c string str-replace
Razor String Replace

I was looking for a way to do some kind of string replace. Found this snippet on here, but it …

razor str-replace
Remove all backslashes from PHP urldecoded string

I am trying to remove all backslashes from a url-decoded string, but it is outputting \ rather than outputting the url-decoded …

php str-replace urldecode