Simple syntax problem

Hi, i have a passed string that i want to echo out, however i cant get the ‘$lang’ value right…

<?php $out6 = str_replace(" ", "-", $row_homejs['colname_".$lang."']);  ?>

Thanks in advance

Here you go:

$out6 = str_replace(' ', '-', $row_homejs['colname_'.$lang]);

Cheers Jake…(nice to see you are still keeping your hand in!)

b