Hi, 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";
This will evaluate to true as $t3 is a string, but that's wrong!!!
So is there a way to include the if condition inside string.
I heard that we can use eval for this: http://stackoverflow.com/questions/3191911/php-if-condition-inside-string
But how is this possible???