PHP Conditional Statement Assignment

Problem faced in to check leap year between 1901 to 2016.
Help me to get conding for this program.

At least you show your code so to find where you doing mistake.