foreach ($tr as $t) {
            $childTr = $t->childNodes;
            foreach ($childTr as $ts) {
                if ($ts->nodeName == 'th') {
                    array_push($keys, strtolower($ts->nodeValue));