Skip to content

Instantly share code, notes, and snippets.

<?php
public function dayFilter($day)
{
if ($day <= 0) {
return '0 дней';
}
if ($day <= 10 || $day >= 20) {
switch ($day % 10) {