dongzou7134 2016-03-13 23:39
浏览 44
已采纳

无法从多维数组中获取值

I've been doing a lot more Python than PHP recently so perhaps I've forgotten something important, but as far as I can see, this looks like it should work. What's actually wrong with it?

$form_settings = array('typeofzone' >= array('tm', 'tp', 'tc'),
                       'chargenum' >= array('pcn'));

$form_id = 'typeofzone';

// This echoes absolutely nothing
echo $form_settings[$form_id][0];
echo $form_settings[$form_id][1];
echo $form_settings[$form_id][2];
  • 写回答

2条回答 默认 最新

  • duanrongshi1544 2016-03-13 23:41
    关注

    Your syntax is wrong... you should use "=>" instead of ">="...

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?