eval() PHP

HTML
<?php class test { public function getTest() { return 'test'; } public function getAction() { return 'action'; } } $test = new test(); $method = 'Action'; $result = '$test->get' . $method . '()'; eval("echo $result;");
CSS
JAVASCRIPT
Expand for more options Login