$id = 'unique_id_block';
$cmsBlockModel = Mage::getResourceModel('cms/block');
$block = Mage::getModel('cms/block');
$cmsBlockModel->load($block, $id);
I have the code above to return an a block object with the id called unique_id_block .
How is this possible to this to return an array of blocks because I may have more than 1 block with the same ID but with different store views.
You can get all blocks with the same identifier using a collection…
You can then iterate over this collection as you would do an array:
Since your question asks to have these as an array though, you can also convert the collection to an array and grab its items as in the following:
But unless there is a good reason for this, i would stick with the first example.