Translations:Manual:MWNamespace.php/5/en

Returns an array of the namespaces (by integer id) that exist on the wiki.