NeoMarine Posted January 18, 2010 Share Posted January 18, 2010 $mysqlValue='myfunction($param1value="1",$param2value="2",$param3value="3");'; eval("$mysqlValue"); This works fine... BUT, I want to do: $myfunctionResult = eval("$mysqlValue"); echo $myfunctionResult; ..and it doesn't work?? Quote Link to comment Share on other sites More sharing options...
NeoMarine Posted January 18, 2010 Author Share Posted January 18, 2010 Note: If I try using: eval("echo $mysqlValue"); it only echo's the string of the variable and results in echoing to screen: "myfunction($param1value="1",$param2value="2",$param3value="3");" Quote Link to comment Share on other sites More sharing options...
NeoMarine Posted January 18, 2010 Author Share Posted January 18, 2010 nevermind.. I found this code which does it: $strFromDB = "fcall1();"; eval("\$line = " . $strFromDB); echo $line; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.