the below are the array am getting out i want to mearge array and remove duplicats of it and pass too for loop not able too do i just want is remove duplicate and pass too for loop as a unique value
i tried with
print_r(array_merge($uniq_arr));
for($i = 0; $i < count($uniq_arr); $i++) {
$tag = $uniq_arr[$i];
}
Array
(
[0] => diet
[1] => exercise
)
Array
(
[0] => diet
[1] => exercise
)
Array
(
[0] => diet
[1] => exercise
)
Array
(
[0] => water intake
[1] => hygiene
[2] => diet
)
Out put in tag shold be like each unique value