Not sure if this is what you mean, but:
PHP Code:
$a_name = 'test a';
$b_name = 'test b';
$c_name = 'test c';
$d_name = 'test d';
$e_name = 'test e';
$myarray = array(a,b,c,d,e);
foreach ($myarray as $myvalue) {
$newname = $myvalue . "_name";
echo $$newname."<br>"; //Will become echo $a_name, echo $b_name, etc...
}