function 里怎么用include();
浙江云 2006-02-14 12:25:02
tset.php 这是原文:
<?php
$infopage="../../includes/info.php";
?>
<table>
<tr>
<td>
<?php include($infopage); ?>
</td>
</tr>
</table>
============================================
============================================
我想改为这种方式:
test2.php
<?
$infopage="../../includes/info.php";
?>
<table>
<tr>
<td>
B位置 <?php echo myinfo($infopage); ?>
</td>
</tr>
</table>
<?
function myinfo($infopage)
{
include($infopage);
//在这里应该怎么写?谢谢大家,请指点我.如何显示到 "B位置"
}
?>
=================================================