[Solved] How to print the record of Multidimensional array in PHP [closed]


Simple foreach should do it.

foreach ($data as $key => $value) {
      echo $key . ": " . $value . "\n";
      // optionally add a second foreach here
      foreach($value as $k => $v) {
           echo $k . ": " . $v;
      }
}

Also, there are no objects here only array values.

1

solved How to print the record of Multidimensional array in PHP [closed]