php eval使用

来源:互联网 发布:淘宝保证金计划5000元 编辑:程序博客网 时间:2024/05/16 15:03

$old= ‘123’;

$operationtype = '*';

$operationval = '3';


eval("\$ganyucount = $old $operationtype $operationval;");

eval必须要用 双引号 

0 0