Footer format

I have this



    $head="";

    $head.= “<call command=“attachFooter”>”;

        $head.=“Totals:,”;

        $tc=number_format($tc);

        $td=number_format($td);

        $tch=number_format($tch);

        $head.="$tc,$td,$tch";

        $head.=" ";

    $head.= “”;



And since the numbers have ,'s in them it returns the footer all messed up. i’ve tried everything I can think of, how do I pass a value in the footer to the grid in XML that uses a comma?



Thanks

There are two ways
a) you can use different list delimeter, by using
grid.setDelimiter("^")

b) you can escape commas
$tc=str_replace(",","\,",number_format($tc));