I'm trying to understand the str_replace
function.
Code:
$a = array(1,8,7,5);
$b = array(3,7,11,6);
$str = '879';
$c = str_replace($a, $b , $str);
echo $c;
Output:
11119
I don't understand the output. Can someone explain how the str_replace
function works?