implode array with unique sysmbol in php code example
Example 1: array_unique
<?php
$input = array("a" => "green", "red", "b" => "green", "blue", "red");
$result = array_unique($input);
print_r($result);
?>
Array
(
[a] => green
[0] => red
[1] => blue
)
Example 2: php implode array
$values = array_map('array_pop', $array);
$imploded = implode(',', $values);