是否可以将这种数据从数据库插入到数组中?
Mouse
Keyboard //Saved from a Textarea box
Monitor
整张桌子是这样的;
id || Owner || Items
--------------------------
1 || John || Mouse
|| || Keyboard //This is in a single row
|| || Monitor
--------------------------
如何将字段“Items”中的每一行数据分配到一个数组中(比如说$items)?
所以它会像:
$items[0] = "Mouse";
$items[1] = "Keyboard";
$items[2] = "Monitor";