在Twig中显示多维数组:无法访问密钥

时间:2016-06-13 15:06:15

标签: php twig

我有一个我希望在Twig中显示的数组。

这是数组:

Dim FirstDate As Date
Dim LastDate As Date

' and then
" ... [status] Like '*" & statusShip & "*' And (Nz([shipStatusDate], Date()) Between #" & Format(FirstDate, "yyyy\/mm\/dd") & "# And #" & Format(LastDate, "yyyy\/mm\/dd") & "#)" 

嫩枝:

$Products= array(
    '0'=> array(
        '0'=> 'apple',
        '1'=> '1',
        '2'=> 'warehousename',
        '3'=> '34.54'  
    ),
    '1' => array(
        '0'=> 'mango',
        '1'=> '3',
        '2'=> 'warehousename',
        '3'=> '33.3'  
    ),
    '2' => array(
        '0'=> 'orange',
        '1'=> '5',
        '2'=> 'warehousename',
        '3'=> '73.4'  
    )
);
  

错误:无法访问密钥“1”

0 个答案:

没有答案