What is utilization of str_replace () function ?
there are 3 main uses of str_replace () function in php.
1-str_replace() function supersedes some characters with some other characters in a string.
2-str_replace() Supersede all occurrences of the search string with the suppression string.
3-str_replace() function returns a string or an array with the superseded values.
you can see below example of str_replace () function:
<?php
//here call the str_replace() function for replace text
echo str_replace("Fine", "Mac", "Hi Fine");
?>
Here "fine" text is repleced by "Hi"
So,output will come:
Hi Mac
0 Comment(s)