This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center
                            
                        
                    
                
                                7年前关闭。
            
                    
我将服务器上的PHP更新为5.3.17,这是最新的稳定版本。

由于某些原因,此echo语句会产生意外的结果:

<?
echo ('<p style="color:#808080;">Hello, <em>'.$_SESSION["user"].'</em>');
?>


结果:

Hello, '.$_SESSION["user"].';


感谢您的输入!

最佳答案

You probably don't have short_open_tags enabled.改为使用完全打开的标记(<?php),或在php.ini中将其打开。

关于php - PHP 5.3.17中的echo()产生奇怪的结果,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/12500050/

10-14 19:46
查看更多