<?php
echo "Номер поста - $post\n";
$digit = $post % 10;
echo "Последняя цифра - $digit\n";
switch ($digit) {
case 0:
echo "Да.";
break;
case 1:
echo "Нет.";
break;
case 2:
echo "Попробуй еще.";
break;
case 3:
echo "Не знаю.";
break;
case 4:
echo "Тип того.";
break;
case 5:
echo "Наверное.";
break;
default:
echo "Все остальное...";
}
?>
PD9waHAKCiRwb3N0ID0gbXRfcmFuZCgxMDAwLCA5OTk5KTsKCmVjaG8gItCd0L7QvNC10YAg0L/QvtGB0YLQsCAtICRwb3N0XG4iOwoKJGRpZ2l0ID0gJHBvc3QgJSAxMDsKCmVjaG8gItCf0L7RgdC70LXQtNC90Y/RjyDRhtC40YTRgNCwIC0gJGRpZ2l0XG4iOwoKc3dpdGNoICgkZGlnaXQpIHsKICAgIGNhc2UgMDoKICAgIAllY2hvICLQlNCwLiI7CiAgICAJYnJlYWs7CiAgICBjYXNlIDE6CiAgICAJZWNobyAi0J3QtdGCLiI7CiAgICAJYnJlYWs7CiAgICBjYXNlIDI6CiAgICAJZWNobyAi0J/QvtC/0YDQvtCx0YPQuSDQtdGJ0LUuIjsKICAgIAlicmVhazsKICAgIGNhc2UgMzoKICAgIAllY2hvICLQndC1INC30L3QsNGOLiI7CiAgICAJYnJlYWs7CiAgICBjYXNlIDQ6CiAgICAJZWNobyAi0KLQuNC/INGC0L7Qs9C+LiI7CiAgICAJYnJlYWs7CiAgICBjYXNlIDU6CiAgICAJZWNobyAi0J3QsNCy0LXRgNC90L7QtS4iOwogICAgCWJyZWFrOwogICAgCQogICAgZGVmYXVsdDoKICAgIAllY2hvICLQktGB0LUg0L7RgdGC0LDQu9GM0L3QvtC1Li4uIjsKfQo/Pg==