Home  >  Article  >  Backend Development  >  由框架产生的有关问题,询问有什么好的解决办法不?

由框架产生的有关问题,询问有什么好的解决办法不?

WBOY
WBOYOriginal
2016-06-13 10:29:35795browse

由框架产生的问题,询问有什么好的解决方法不???
例如

 if(1){
?>






}
?>


这种写法我报错了,,因为我的解析是

寻找 之间的语句,,然后eval

if(1){ 像这种 eval肯定错了,,

因此我只能

 if(1){
echo 




EOF;
}
?>

这样做非常不好,,


谁有好的方法提供一下,,可以实现上面第一种说的方式

------解决方案--------------------
eval('?>' . 第一段代码 );
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