私はPHPを使用して、クエリの受け渡しによってページをより動的にしていますが、内部に動的コンテンツを含める必要があるHTMLコードの大きな塊がありますが、すべてのステートメントを印刷せずにそれを行う方法がわかりません:
HTML の一部:
<div class="review">
<p>
<img src="http://www.cs.aub.edu.lb/hsafa/cmps278/hw2/rotten.gif" alt="Rotten" />
<q>Expect no intelligence or subtlety here, but if you're willing to put up with the sheer ridiculousness of it all, you might enjoy wallowing in Bekmambetov's shameless exhibition of narrative lunacy and technical fireworks in this movie.</q>
</p>
</div>
<div class="personal">
<p>
<img src="http://www.cs.aub.edu.lb/hsafa/cmps278/hw2/critic.gif" alt="Critic" />
Frank Swietek <br />
<span class="italic">One Guy's Opinion</span>
</p>
</div>
上記のコードは単一のレビュー用ですが、すでにカウントしているレビューがいくつもある可能性がありますが、すべてのレビューの画像、引用、テキストも変更しています. すべてを印刷せずにすべてのタグを含める方法はありますか?