Web resources
>
Calendar >
Zodiac signs
Zodiac signs
Those born on 02 December are:
Sagittarius
1. Aries [March 21 - April 20]
2. Taurus [April 21 - May 21]
3. Gemini [May 22 - June 21]
4. Cancer [June 22 - July 22]
5. Leo [July 23 - August 23]
6. Virgo [August 24 - September 23]
7. Libra [September 24 - October 23]
8. Scorpion [October 24 - November 22]
9. Sagittarius [November 23 - December 21]
10. Capricornus [December 22 - January 20]
11. Aquarius [January 21 - February 18]
12. Pisces [February 19 - March 20]
2. Taurus [April 21 - May 21]
3. Gemini [May 22 - June 21]
4. Cancer [June 22 - July 22]
5. Leo [July 23 - August 23]
6. Virgo [August 24 - September 23]
7. Libra [September 24 - October 23]
8. Scorpion [October 24 - November 22]
9. Sagittarius [November 23 - December 21]
10. Capricornus [December 22 - January 20]
11. Aquarius [January 21 - February 18]
12. Pisces [February 19 - March 20]
// PHP function to know the zodiac sign
// Returns a number from 1 to 12
function zodiac($dia,$mes){
/* Author: arnAu bellavista
www.BinariEM.com
Febrer 2021 */
$primer_dia = array(21,21,22,22,23,24,24,24,23,22,21,19);
// Fem l'equivalència en el mes a on comença aquell signe
$zoo = $mes - 2 + 12;
if($zoo != 12){
$zoo = $zoo % 12;
}
// Restem 1 si és anterior al dia d'inici d'aquell mes
if($dia < $primer_dia[$zoo-1]){
$zoo = $zoo - 1;
if($zoo == 0){
$zoo = 12;
}
}
return $zoo;
}
// Call the function
// And show the sign name using a array$signes = array('Aries','Taurus','Gemini','Cancer','Leo','Virgo','Libra','Scorpio','Sagittarius','Capricorn','Aquarius','Pisces');
$zodiac = zodiac($day,$month);
echo $signes[$zodiac-1];
// Returns a number from 1 to 12
// And show the sign name using a array