How can I replace all the values of an array with a single $string.
For example I have this :
$string = "myString";
$array = array(
'key1' => 'value1',
'key2' => 'value2',
'key3' => 'value3',
);
I want to output this :
$replacedArray = array(
'key1' => 'myString',
'key2' => 'myString',
'key3' => 'myString',
);
How can I replace all the values of an array with a $string.