Store plus and minus in a variable PHP
<p>How can I solve this problem:</p>

<pre><code>if ($variable == 1) {
    $math = "-";
} else {
    $math = "+";
}

$numberOne = 10;
$numberTwo = 10;

$result = $numberOne $math $numberTwo;
</code></pre>

<p>This doesn´t work, is there any way to solve this?</p>
