i am trying to access the value of an array that i have created, but it seems to fail.
I am looping through an array that sends VIA http, and adding the docno and entryno to new array called $ArrID, it can be added to the new array, however when i try to access the ArrID it seem to get nothing from the array itself while i am confident that ArrID contain the items
CODE
$ArrID = [];
foreach ($form_data_body as $key => $value) {
  $docno = $value -> doc_no;
  $entryno = $value -> entryno;
  if($mysqli->query($sql) == 1){
    $itemArr = array('docno' => $docno, 'entryno' => $entryno);
    $ArrID[] = $itemArr;
  }
}
if(count($ArrID)>0){
    foreach ($ArrID as $key => $values) {
      echo $values -> docno;
    }
}
 
     
     
    