Magento get all categories into array
You can grab all existing categories in Magento to array, here is quick example:
$categories = Mage::getModel('catalog/category')
->getCollection()
->addAttributeToSelect('*')
->addIsActiveFilter();
$all = array();
foreach ($categories as $c) {
$all[$c] = $c->getName();
}
return $all;
}
```