dynamic calculation

They have: 11 posts

Joined: Mar 2012

$a= 5;
$b =10;
$c= "+"
$d= $a.$b.$c;

How can I do dynamic calculation like this. I know this code will not work. But
Just want to use opereater directly input through form. How can I prevent opreater to converting into string.