如何通过表行而不是php中的列来回显多维数组值

我试图在PHP中逐行回显表格形式的多维数组。 我有以下数组;

Array ( 
  [0] => Array ( 
       [0] => Paracetamol 
       [1] => Caffeine
       [2] => Pase 
   ) 
   [1] => Array ( 
       [0] => 12
       [1] => 10
       [2] => 1
   ) 
   [2] => Array (
       [0] => Packets
       [1] => Cartons
       [2] => Containers
   )
)

Here is the output I get when I try foreach solutions to previously asked questions relating to this topic;
https://jsfiddle.net/fraqy912/1/

And here is what I'm looking to achieve;
https://jsfiddle.net/5akgjtvf/3/

任何帮助将不胜感激。 请注意,我使用PHP作为基本语言,如果我的问题不够清楚,我事先表示歉意。 谢谢。