i have two tables one is recipe table and 2nd is ingrediants and i have data like this so how i merge same data i dont want recipe print multiple times..
Array
(
[data] => Array
(
[1] => Array
(
[id] => 1
[recipe] => tea
[ingrediant] => milk
)
[2] => Array
(
[id] => 1
[recipe] => tea
[ingrediant] => sugar
)
[3] => Array
(
[id] => 1
[recipe] => tea
[ingrediant] => water
)
)
)