0
我是PHP新手。但我試圖分配一個數組中的一個鍵的多個值,我有麻煩。我究竟做錯了什麼?數組中同一個鍵的多個值
$skill_groups = array(
'combat' => 'Attack', 'Defence', 'Strength', '', 'Ranged', 'Magic',
'gathering' => 'Mining', 'Woodcutting', 'Fishing', 'Hunter', 'Farming', 'Divination',
'artisan' => 'Smithing', 'Cooking', 'Runecrafting', 'Crafting', 'Firemaking', 'Herblore', 'Fletching', 'Construction',
'support' => 'Dungeoneering', 'Thieving', 'Agility', 'Slayer', 'Prayer', 'Constitution'
);
*一*鍵始終映射到準確* *一個值。不能有多個值。 (無論如何,在一個普通的PHP數組中)。問題是,你想如何使用這個數組及其值?使用嵌套數組有意義嗎? – mario 2014-08-31 02:14:19
我只是想能夠將它們組合在一起。 – Shaydx 2014-08-31 02:18:26