Dissapearing "+" in php string where "-" shows up fine
<p>How can I fix or avoid a missing + symbol in my string.
I used the same code with the - and it works fine.
I have tried using  $num1."+".$num2 with no luck, very strange.
<a href="http://i.stack.imgur.com/J6wJ3.png" rel="nofollow">Photo of broblem</a></p>

<pre><code>if(stripos ($text, 'add') !== false){
    $trimtext = substr($text,3);
    $num1 = strstr($trimtext, '+', true);
    $trimnum2 = strstr($trimtext, '+', false);
    $num2 = str_replace("+","",$trimnum2); 
    $result = $num1 + $num2;    
    file_get_contents("$website/sendmessage?&amp;parse_mode=HTML&amp;chat_id=$chatid&amp;text=&lt;code&gt;$num1 + $num2 = $result&lt;/code&gt;");       
}

if(stripos ($text, 'sub') !== false){
    $trimtext = substr($text,3);
    $num1 = strstr($trimtext, '-', true);
    $trimnum2 = strstr($trimtext, '-', false);
    $num2 = str_replace("-","",$trimnum2); 
    $result = $num1 - $num2;    
    file_get_contents("$website/sendmessage?&amp;parse_mode=HTML&amp;chat_id=$chatid&amp;text=&lt;code&gt;$num1 - $num2 = $result&lt;/code&gt;");   
}
</code></pre>