php输出的代码,如何能实现在查看源代码时,源代码有换行
如 echo '<table><tr>';
输出时查看源代码<table><tr>是连在一起的
怎么写能实现在查看源代码时是
<table>
<tr>
这样分成两行显示的效果呢?
我 echo '<table>\n<tr>' 也没用,不是显示的结果换行,是让显示的源代码中有换行,谢谢关注指点
如 echo '<table><tr>';
输出时查看源代码<table><tr>是连在一起的
怎么写能实现在查看源代码时是
<table>
<tr>
这样分成两行显示的效果呢?
我 echo '<table>\n<tr>' 也没用,不是显示的结果换行,是让显示的源代码中有换行,谢谢关注指点
echo '<tr>';
echo <<<eof
<table>
<tr>
eof;
<table>
<tr>
end;
echo '<table>$a<tr>';
输出 <table>$a<tr>而
echo "<table>$a<tr>";
则输出 <table>abc<tr>
或
echo >>>n
<table>
<tr>
//.....
n;
……
n;
这种形式,怎么在其中插入变量呢?
echo >>>HTML
<div id="{$Div}"/>
HTML;