我有一个字符串中的项目列表,例如
$string=Digital SLR & Batteries (Spares if possible), Memory Cards (& Spares), Strong Walking Boots (No Trainers), Warm waterproof clothing, Packed lunch/evening meal (Or both) depending on workshop time, Drinks
我想要一个数组中的所有项目,这样我就可以使用 for 循环将它们输出到一个 html 列表中。
我怎样才能做到这一点?