好的,这是我有多个需要显示注释的产品的问题。在不为每个产品写出以下整个代码的情况下,将注释与多个产品相呼应的最佳方法是什么?
<?php if ($data['header']['group_code'] == 'R088X') { ?>
<li><span>Printers:</span> Wipe the allocated print area before print application with methylated spirit.</li>
<?php } ?>
我已经尝试了以下放置它不起作用...
<?php
$data = array((['header']['group_code'] == 'R088X', 'R129X'));
if (in_array(['header']['category'] == 'R088X', $data)) { ?>
<li><span>Printers:</span> Wipe the allocated print area before print application with methylated spirit.</li>
<?php } ?>
任何建议将不胜感激:)