Is it possible to do something similar to the following, I've tried but couldn't get any variations of this to work:
$hello_all = array($str . ' World', $str . ' Universe');
function combine(&$arr){
$str = 'Hello';
print_r($arr);
}
combine($hello_all);
And I'd like to get something like this:
Array ( [0] => Hello World [1] => Hello Universe )
Is there a better approach?
array('#replace# World'), but that would be much slower than Patrick's solution