Say:
Is it possible to add a & b together, using the variable $add as the operator? Like:
Obviously, what I have written here doesn't work, but is there a way to make this work? If so, any clues would be appreciated! Thanks!
Code:
$add = '+';
$a = 1;
$b = 2;
Code:
$total = $a $add $b;