我需要幫助,我的陣列結果有問題。表中的陣列排列
,我正在使用的代碼:
$presents = json_decode(fBGetDataStore('presents'), true);
,並打印出結果:
<?= print_r($presents) ?>
顯示了這種結果:
Array ([0] => Array ([sender] => 100009016810227 [itemCode] => 0f8g [itemContext] => normal [extraData] =>)
[1] => Array ([sender] => 100009016810227 [itemCode] => 0fcm [itemContext] => normal [extraData] =>)
但我想結果:
[1] Sender ID: 100009016810227 and Item Code is 0f8g
[2] Sender ID: 100009016810227 and Item Code is 0fcm
爲什麼你想讓輸出鍵從1開始? –
這是數字計數...或者它沒有必要計算結果.. 這種格式也是可以接受的 發件人ID:100009016810227和物品代碼是0f8g' –