There is an array obtained from the database, with an unknown number of rows.
When prompted:
print_r($res) we get:
Array ([0] => Array ([id] => 1 [number] => 203 [loc] => Tech support [fio] => Sergey Zabuldygin) [1] => Array ([id] => 2 [number ] => 112 [loc] => Legal Department [fio] => Ivan Unfair] [2] => Array ([id] => 3 [number] => 115 [loc] => Drafts [fio] => Georgy Krivorukov))
How to deploy it to a table in a loop?