包含文件php

时间:2017-07-04 04:12:35

标签: php

我有档案' 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代码。但是当我注意到[卡] [/卡]消失了。 为什么?? 有人能帮助我吗? 感谢。

0 个答案:

没有答案