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