sub2pewdiepie44
sub2pewdiepie44 sub2pewdiepie44
  • 20-02-2020
  • Computers and Technology
contestada

What is the PHP coding for determining if leap year or not?​

Respuesta :

babalolavicktor babalolavicktor
  • 20-02-2020

Answer:

<!DOCTYPE html>

<html>

<body>

<?php  

$year = 2032;  

if((0 == $year % 4) & (0 != $year % 100) | (0 == $year % 400))

{

echo "$year is a Leap Year.";    

}

else  

{  

echo "$year is not a Leap Year.";    

}

?>

</body>

</html>

Explanation:

Answer Link

Otras preguntas

Help me please thank you
Please help me!! Show work please :)
Pauline is 73 years old and has to urinate almost twice as often as she did when she was younger. what age-related change contributes to this?
need help with finding A and B
It sought to show that there is nothing "under the sun" that is capable of giving meaning to life, illustrating what happens when one pursues knowledge and wisd
Can someone fully simplify this for me please? : 15x^2 y^4 (−10x^2 y^2 )
​which perspective in psychology would suggest that depression is related to changes in brain chemistry?
What do you consider art?
_ refers to a situation where one person supplies the means for another person to commit suicide; this is done in order to prevent suffering. a. passive euthana
Suppose you walk into the Capitol in Washington and ask to interview the most prominent person in the entire Congress. If they accept, you'll get an appointmen