I want to add random array values to each character
<?php
//array_rand ( array $array [, int $num = 1 ] )
$input = array("1","2","3");
$rand_keys = array_rand($input, 2);
$random = $input[$rand_keys[0]];
$str = "ABCDEFG";
$newstr = substr_replace($str, $random, 1, 0);
echo $newstr
?>
Expectation :
ABCDEFG = A1B3C1D2E3F2G
G? it should beA*B*C*D*E*F*G*where*will be any number from[1,2,3]