我有一个 .php 脚本。在一个变量中我添加了一个 html,但是在那个 html 中我想从另一个变量中获取文本,我该怎么做?
这是带有 html 的变量:
$ai_boc = '
<html>
<head>
<title>Notes by Douno</title>
</head>
<body>
<div align="center">
<div style="width:600px; height:auto; border-radius:10px; background-color:#F7F1B8; background-repeat: auto; font-family:Georgia; color:#513414;">
<div style="height:100px; padding-top:20px; padding-left:20px; text-align:left;">
<p style="margin-bottom:0px; font-weight:bold; font-size:xx-large;">$ai_su</p>
<p style="margin-top:5px; font-size:x-small; font-weight:bold;">$ai_da</p>
</div>
<div style="height:1px; background-image: url(http://dl.dropbox.com/u/99775621/divider.jpg); display:block; position:relative;">
</div>
<div style="position:relative; overflow:hidden;">
<div style="height:auto; width:375; padding-left:20px; text-align:left; position:relative; float:left;">
<div style="width:375px;"> <p style="font-size:x-small; font-weight:bold;"><?php echo $ai_bo?></p>
</div>
</div>
<div style="height:auto; width:160px; padding-left:20px; padding-right:20px; text-align:left; position:relative; float:left;">
<p style="font-size:x-small; font-weight:bold; vertical-align:bottom;">If this email is considered spam, please contact us.</br></br>This email was send via Notes. An Android app developed by Douno.</p>
<a href="https://play.google.com/store/apps/details?id=appinventor.ai_L_Bogaerts_95.Notes">
<img alt="Get it on Google Play"
src="https://developer.android.com/images/brand/en_generic_rgb_wo_45.png" />
</a>
</div>
</div>
<div style="height:1px; background-image: url(http://dl.dropbox.com/u/99775621/divider.jpg); display:block; position:relative;">
</div>
<div style="height:100px; width:600px; display:inline-block; position:relative;">
</div>
</div>
</div>
</body>
</html>
';
我找不到任何有效的解释,所以我希望这里有人可以进一步帮助我。html 还没有完成......我还要进行一些更改。