I want to know if there is a way to use something like this:
$t1=1; $t2=2; $t3=\"$t1>$t2\"; if($t3) echo \"Greater\"; else echo \"Smaller\";
Most likely you don't heed that and this question come out from bad design. Why not to make it just
if ($t1>$t2) echo "greater";