Home  >  Article  >  Backend Development  >  php include()字符串,并解析字符串的有关问题

php include()字符串,并解析字符串的有关问题

WBOY
WBOYOriginal
2016-06-13 11:23:131029browse

php include()字符串,并解析字符串的问题
我需要include()这样一个字符串
  $str ='1111 ';
要求能输出111和时间,但是现在只能输出111而无法解析时间函数.
求解,谢谢!


------解决方案--------------------
需要保留
就需要用 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