when you say you want to sum them do you mean you have two fields one is $string1="123" and the other is $string2="321".
You can just sum them.
$ans=$string1+$string2.
you will get $ans = 444.
if you just want to add them together. (concat) use
$ans=$string1.$string2;
$ans will then be "123321";
Mark.