Century Year

monif64 · August 01, 2020 · PHP
<?php
$year = 2000;

if($year % 100 == 0)
{
    echo "$year is a century year";
}

if($year % 100 != 0)
{
    echo "$year is not a century year";
}

Comments

Please sign up or log in to contribute to the discussion.