la variabile $str1 nel tuo esempio non è numerica !!!

Codice PHP:
$str1 '1';
$str2 '1';
$somma = (str1 str2);
echo 
$somma