I have a string I want to use eval on but I get this error:
Parse error: parse error, unexpected $ in C:\filepath\test1.php(54) : eval()'d code on line 1
code:
$result = "$test($POST[$test],$POST[$val])";
echo $result;//== name_len_min(2,s)
echo eval($result);
Does anyone know why this error is being thrown? Thanks.