我需要帮助,我的阵列结果有问题。表中的阵列排列
,我正在使用的代码:
$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' –