I have this $res variable that gets a result from a DB query. The result contains the name of a session variable in a string. That session variable is already set and has the value of 5 (INTIGER), for example:
$res = mysql_query('SELECT `result` from `table`....');
....
gives the $res variable this string value: "Result: $_SESSION[myVar]";
print_r($res); // outputs Result: $_SESSION[myVar] and not "Result: 5"
How can I parse the string to get the value of the session variable?