I have an array of values, for example
$fred = Array('one','two','@group','three','four');
and a second array
$group = Array('alpha','beta','gamma');
Which is the most efficient way to substitute the value '@group' with the values inside $group array? That is, to obtain
$expanded_fred = Array('one','two','alpha','beta','gamma','three','four');
PS The grouping method has only one level. No nested groups.