PHP : eval
PHP : eval
Out of context: Reply #3
- Started
- Last post
- 4 Responses
- meph5040
In PHP 4, eval() returns NULL unless return is called in the evaluated code -php.net
the sample below works fine
$num = 1;
$name1 = "Working";echo (eval("return $name$num;"));