>$X"/> >$X">

Home  >  Article  >  Backend Development  >  variable function的一个有关问题

variable function的一个有关问题

WBOY
WBOYOriginal
2016-06-13 10:10:59855browse

variable function的一个问题
手册上说echo,print不是真正的函数所以不能应用variable function。但是我试了一下是可以的

PHP code
<!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->$t='echo';$t('123');



------解决方案--------------------
这个……很有用吗?我一般直接:echo "XXX-->>$X\n";或者echo("XXX");效果一样啊。
只要能输出就行啊。
看来平时还是忽略了很多细节啊,研讨……
------解决方案--------------------
楼主运行了吗。真的可以吗?
------解决方案--------------------
$t='echo';
$t('123');
Fatal error: Call to undefined function echo() ...
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