Here i want to find unique
values,so i am writing code like this but i can\'t get answer,for me don\'t want to array format.i want only string
<
You can use array_unique()
in single line like below:-
";print_r($unique_array); // print unique values array
?>
Output:- https://eval.in/601260
Reference:- http://php.net/manual/en/function.array-unique.php
If you want in string format:-
echo implode(',',$final_array);
Output:-https://eval.in/601261
The way you want is here:-
https://eval.in/601263
OR
https://eval.in/601279