PHP 从数组中检索信息

PHP retrieve information from array

我需要从数组中获取值。

我的代码:

$tags = $array['bePVM'][''];
echo ('<form action="" method="POST">');
for($o = 0; $o<$i; $o++){
   echo "<br>Užsakymo: <b> ",$data2DArray[$o][0], "</b> Price witout VAT: ",'<input type="text" name="bePVM[]" value="">'," VAT: ",'<input type="text" name="PVM[]" value="">'," Price with VAT: ",'<input type="text" name="suPVM[]" value="">',"<br>";
}
echo ('<input type="submit" value="">');
echo ('</form>');
print_r($_POST);
    echo $tags[1];

我有这个输出:

Warning: Trying to access array offset on value of type null


Array ( [bePVM] => Array ( [0] => 100 
                           [1] => 200 ) 
          [PVM] => Array ( [0] => 21 
                           [1] => 42  ) 
        [suPVM] => Array ( [0] => 121 
                           [1] => 242 ) 
      )

如何回显 [bePVM][1] 200 在哪里?

谢谢

How can i echo [bePVM][1] where is 200?

如果输出来自 print_r($_POST); 那么这应该将 200 写入输出:

echo $_POST['bePVM'][1];