Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有这个 PHP 代码:
$notIn1 = array_diff($ListData2, $ListData1);
和$ListData2变量$ListData1是数据数组。
$ListData2
$ListData1
我目前正在显示如下数据:
echo implode('<br>', $notIn1);
但我想在表格中显示它
我怎样才能做到这一点?
echo '<table>'; foreach($notIn1 as $line) { echo '<tr><td>$line</td></tr>'; } echo '</table>';