The sql_alltable() function returns an array listing the various SQL tables that exist in the database. it accepts the same parameters as sql_showbase:
-
$spipempty by default, the parameter is used to list only the tables using the prefix defined for SPIP tables. Use'%'instead if you want to list ALL tables, -
$serveur, -
$option.
Usage:
$tables = sql_alltable();
sort($tables);
// $tables[0] : spip_articles