private function getTableList($structure)
    {
        $result = [];

        if (preg_match_all('/CREATE(?:\s*TEMPORARY)?\s*TABLE\s*(?:IF NOT EXISTS\s*)?(?:`?(\w+)`?\.)?`?(\w+)`?/i', $structure, $m)) {
            foreach ($m[2] as $match)//m[1] is a database name if any
            {
                $result[] = $match;
            }
        }

        return $result;
    }
private function getTableList($structure)
    {
        $result = [];

        if (preg_match_all('/CREATE(?:\s*TEMPORARY)?\s*TABLE\s*(?:IF NOT EXISTS\s*)?(?:`?(\w+)`?\.)?`?(\w+)`?/i', $structure, $m)) {
            foreach ($m[2] as $match)//m[1] is a database name if any
            {
                $result[] = $match;
            }
        }

        return $result;
    }
private function getTableList ( $ structure ) { $ result = [ ] ; if ( preg_match_all ( '/CREATE(?:\s*TEMPORARY)?\s*TABLE\s*(?:IF NOT EXISTS\s*)?(?:`?(\w+)`?\.)?`?(\w+)`?/i' , $ structure , $ m ) ) { foreach ( $ m [ 2 ] as $ match ) //m[1] is a database name if any { $ result [ ] = $ match ; } } return $ result ; }
Retrieves list of table names from the database structure dump
@access private
@param string $structure database structure listing
@return array
Retrieves list of table names from the database structure dump