>$X"/> >$X">

variable function的一个有关问题

WBOY
Release: 2016-06-13 10:10:59
Original
854 people have browsed it

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

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



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