PHP is Syntax wired behavior
This question already has an answer here:
It's not weird. It's how that's intended to be. phpinfo()
will output data in any case. If you want to capture it's output, then use ob_
(output buffering) functions:
ob_start();
phpinfo();
$data = ob_get_contents();
ob_end_clean();
//var_dump($data);
Your problem isn't related to syntax.
PHPinfo is a function that returns information in HTML form about the PHP environment on your server (see http://us2.php.net/phpinfo for more information). To run PHPinfo, you must save the following code in a file on your computer using the text editor:
phpinfo ();
链接地址: http://www.djcxy.com/p/59536.html上一篇: 什么'{$ x}'代表?
下一篇: PHP是Syntax wired行为