Home >Backend Development >PHP Tutorial > 如何把字符串变成php的规范代码

如何把字符串变成php的规范代码

WBOY
WBOYOriginal
2016-06-13 13:23:29723browse

怎么把字符串变成php的规范代码?
如:
字符串 $a="if(1==1){echo 'aaa';}";

怎么变成非字符串的实际的php代码?

------解决方案--------------------
eval("$a;");
------解决方案--------------------

探讨

eval("$a;");

------解决方案--------------------
探讨

eval("$a;");
Statement:
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