A HTML file is generated by a PHP file. Generally speaking, what a user can see from a HTML file can be divided into two parts, one part is static; another part is dynamic, this part is represented by variables in the PHP file.
For example:
$html=<<<eod
$title<br/>
Total Price:$row[column1]
Quota:$row[column2]
<pre>$row[column3]</pre>
Balance:<label class="price">$row[column4]</label>
Current Unit_price:<span class="price">$row[column5]</span>
$row[column6] readers are expected. Announcer:$row[column6]
<hr>
eod;
echo $html;
Total Price: Quota: Balance: Current Unit_price: readers are expected.Announcers:
is one part, it is static;
$row[column1]$row[column2]$row[column3]$row[column4]$row[column5]$row[column6]
is another part, the text is generated by variables, and the content of the text is dynamic. I knew that I can do it by wrapping them with <span>, <div>, <label>,
etc. But is there a better way to do it without any markers? How to differentiate both when displaying them? How to control the color or font of two parts respectively? Is there an elegant way to do it?