Inpsyde\MultilingualPress\Database\WPDBTableList::extract_tables_from_schema PHP Method

extract_tables_from_schema() private method

Extracts all table names (including the given prefix) from the given schema.
private extract_tables_from_schema ( string $schema, string $prefix = '' ) : string[]
$schema string Schema string.
$prefix string Optional. Table prefix. Defaults to empty string.
return string[] The table names included in the given schema.
    private function extract_tables_from_schema($schema, $prefix = '')
    {
        preg_match_all('~CREATE TABLE (' . $prefix . '.*) \\(~', $schema, $matches);
        return empty($matches[1]) ? [] : $matches[1];
    }