function getZodiacalSign($date){
$date = date_parse($date);
if(!$date['errors']) {
$signs = ["Козерог","Водолей","Рыбы","Овен","Телец","Близнецы","Рак","Лев","Девы","Весы","Скорпион","Стрелец"];
$signsstart = [21, 20, 20, 20, 20, 20, 21, 22, 23, 23, 23, 23];
return $date['day'] < $signsstart[$date['month'] +1]? $signs[$date['month'] -1]: $signs[$date['month'] %12];
}
}
echo getZodiacalSign('29.4.1993');