<?php $str = "1,1,2,2,2,"; $string = rtrim($str, ','); $result = implode("', '", array_unique(explode(',', $string))); $result = "'$result'"; echo $result;
You have javascript disabled. You will not be able to edit any code.
Value for `_results` contains invalid data `array`