e.g. Input Array
array ([0] => Array
(
[date] => 2016-11-16
[cook_book_id] => 89
[occassion] => Not set
)
[1] => Array
(
[date] => 2016-11-16
[cook_book_id] => 90
[occassion] => Diwali
)
[2] => Array
(
[date] => 2016-11-16
[cook_book_id] => 95
[occassion] => Not set
)
[3] => Array
(
[date] => 2016-11-17
[cook_book_id] => 95
[occassion] => Not set
)
)
Output should Be
array([0] => Array
(
[date] => 2016-11-16
[cook_book_id] => 89
[occassion] => Diwali
)
[1] => Array
(
[date] => 2016-11-17
[cook_book_id] => 95
[occassion] => Not set
)
)
In input array "date" and "Not Set" value is repeated from input array i want unique date value with occassion name "diwali"(high priority) which can be any value if not then default value should be "Not Set" i.e. if Not Set should get override with "diwali" else it should be "Not Set"