By using the following code Get Bundle product ids
$productIDs = $product->getTypeInstance(true)->getChildrenIds($product->getId(), false)
Mage::log($productIDs);
using above retrive multi-dimensional array..
Array
(
[0] => Array
(
[21] => 21
[25] => 25
)
[1] => Array
(
[28] => 28
)
)
in my case i have a bundle with three product... i just need product ids(21, 25 and 28) i try a lot but unable figure out. any help would be greatly appreciated