Here is my foreach
<?php
foreach ($_productCollection as $_product){
echo "<PRE>";
print_r($_product->getData());
}
?>
foreach Array Output:-
Array
(
[entity_id] => 85
[name] => Round Bur
)
Array
(
[entity_id] => 86
[name] => testile Bur
)
Array
(
[entity_id] => 87
[name] => Shovel
)
Array
(
[entity_id] => 88
[name] => Round Bur
)
I want to remove the same name array under foreach for example
Actual Output
Array
(
[entity_id] => 85
[name] => Round Bur
)
Array
(
[entity_id] => 86
[name] => testile Bur
)
Array
(
[entity_id] => 87
[name] => Shovel
)
How to remove the last 1 arrays because of a name as same. please give me a solution