I have http://codepad.org/69O7bSbC
<?php
$colors = array('red','green','blue');
foreach ($colors as &$item)
{
$item = 'color-'.$item;
}
print_r($colors);
?>
Output:
Array
(
[0] => car-red
[1] => car-green
[2] => car-blue
)
Is it simpler solution (some array php function like that array_insert_before_all_items($ colors,"car-")
)?
Thanks