错误一:
echo 'echo $rst4[$i]["tb_restore_content"]:<br>';echo $rst4[$i]['tb_restore_content']."<br><br>";echo 'echo $rst4[$i]["tb_restore_content"]的内容:<br>';echo '<font color="gray"><i><font color="red">【回复:sasasa】 </font><font color="gray"><i><font color="red">【回复:sasasa】 </font>0 </i></font><br/> 1 </i></font><br/> 2 ';
echo is_string($rst4[$i]['tb_restore_content']);echo "$rst4[$i]['tb_restore_content']";
为什么呢,看不出来,找出原因了吗?
是很神奇!
对于错误一,神奇在于你没把问题说清楚
对于错误二,神奇在于你没按 php 书写规则书写
echo "$rst4[$i]['tb_restore_content']";
应写作
echo "{$rst4[$i]['tb_restore_content']}";
或
echo $rst4[$i]['tb_restore_content'];
是很神奇!
对于错误一,神奇在于你没把问题说清楚
对于错误二,神奇在于你没按 php 书写规则书写
echo "$rst4[$i]['tb_restore_content']";
应写作
echo "{$rst4[$i]['tb_restore_content']}";
或
echo $rst4[$i]['tb_restore_content'];
为什么呢,看不出来,找出原因了吗?
是很神奇!
对于错误一,神奇在于你没把问题说清楚
对于错误二,神奇在于你没按 php 书写规则书写
echo "$rst4[$i]['tb_restore_content']";
应写作
echo "{$rst4[$i]['tb_restore_content']}";
或
echo $rst4[$i]['tb_restore_content'];
那你把问题仔细的描述一下
如果涉及变量,要分别给出变量的值
是很神奇!
对于错误一,神奇在于你没把问题说清楚
对于错误二,神奇在于你没按 php 书写规则书写
echo "$rst4[$i]['tb_restore_content']";
应写作
echo "{$rst4[$i]['tb_restore_content']}";
或
echo $rst4[$i]['tb_restore_content'];
那你把问题仔细的描述一下
如果涉及变量,要分别给出变量的值
$a='<div style="color:gray;border:1px solid gray;margin:3px"><font color="red">【回复:sasasa】 </font>0 </i></div>2'
echo '<div style="color:gray;border:1px solid gray;margin:3px"><font color="red">【回复:sasasa】 </font>0 </i></div>2'
有什么不对吗?
PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号