我有档案' mod.php'像这样:
<table class="table table-bordered table-striped table-condensed flip-content">
<thead>
<td><b> Day </b></td>
<td> Card </td>
<td> Paypal </td>
</thead>
<tbody>
[card]
<?php foreach($this->list as $r){?>
<tr>
<td class="numeric"><b><?php echo $r["day"]; ?></b></td>
<td class="numeric"><?php echo number_format($r["sum_card"],0,'',','); ?></td>
<td class="numeric"><?php echo number_format($r["sum_paypal"],0,'',','); ?></td>
</tr>
<?php } ?>
[/card]
</tbody>
当我用include:
加载它时ob_start();
include ./mode.php;
$_part = ob_get_clean();
然后将识别PHP代码。但是当我注意到[卡] [/卡]消失了。 为什么?? 有人能帮助我吗? 感谢。