Код: Выделить всё
switch ($count) {
case 20:
$priority = 'low';
break;
case 40:
$priority = 'medium';
break;
case 60:
$priority = 'high';
break;
case 80:
$priority = 'severe';
break;
}
Код: Выделить всё
if ($count
Подробнее здесь: [url]https://stackoverflow.com/questions/24812851/using-comparison-operators-in-a-php-switch-statement[/url]
Мобильная версия