Home >> PHP >> str_replace() function in PHP

str_replace() function in PHP

The str_ireplace() function used for replaces all occurrences with other characters in a string.


str_replace (search,replace,string,count)


echo str_replace("Dear","Brother","Hello Dear");


Hello Brother

Post Your Comment

Next Questions
str_shuffle() function
str_split() function
str_word_count() function
strcasecmp() function
strchr() function
strcmp() function
strcspn() function
strip_tags() function
stripslashes() function
stripos() function
stristr() function
strlen() function
strnatcasecmp() function
strnatcmp() function
strncasecmp() function
strncmp() function
strpbrk() function
strpos() function
strrchr() function
strrev() function
strripos() function
strrpos() function
strspn() function
strstr() function
strtok() function

Copyright ©2022 coderraj.com. All Rights Reserved.