Sampling the data when parsing with a library like Simple Html DOM?

Write a simple parser.
Need to pull data from a table, BUT
there are identical classes of lines and all the time different number.

t e on the row number to pull is not an option.

the data of such a plan:

Name
Ivanov A. A.


it is possible to write the condition?
$fio = to take from a string the contents of column 2, if 1 column "name"
June 26th 19 at 14:13
2 answers
June 26th 19 at 14:15
sandbox.onlinephpfunctions.com/code/5bc01636db0a75...

Option to vanilla php Simple Html DOM probably also possible to do xpath queries
June 26th 19 at 14:17
Something like this:
$map = array('name' => 'fio', 'Address' => 'address', ...);
$result = array('fio' => ", 'adress' => ", ...);
foreach ($table->find('tr') as $row) {
 $cells = $row->find('td');
 $result[$map[$cells[0]->plaintext]] = $cells[1]->plaintext;
}

Find more questions by tags PHP