Home > Backend Development > PHP Tutorial > php eval问题

php eval问题

WBOY
Release: 2016-06-06 20:46:09
Original
1061 people have browsed it

php eval问题

这是echo $code; 打印出来的字符串
eval($code);
怎么运行不了

回复内容:

php eval问题

这是echo $code; 打印出来的字符串
eval($code);
怎么运行不了

php eval问题

我测试了是没有问题的,页面返回的错误是什么?你需要注意的一个问题就是function($cmd){print_r($cmd);}切记要用单引号包裹,双引号包裹的话$cmd变量会被页面直接解析而报错。

Related labels:
php
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template