function FromText($dat) { $tp = new HTMLTable(); if (!$tp->parse($dat)) { error_log($tp->error); return false; } return $tp->tables; }