Код: Выделить всё
foreach ($topics as $value) {
$lvalue = strtolower($value);
$uvalue = strtolower($value);
if (in_array($value, $topics) == FALSE || in_array($lvalue, $topics) == FALSE || in_array($uvalue, $topics) == FALSE) {
array_push($utopics, $value);
}
}
Подробнее здесь: https://stackoverflow.com/questions/227 ... ray-unique
Мобильная версия