Wednesday 22 August 2012

Leap year With ternary operator in php

How to check Whether  year is leap or not.
<?php


$y=1997;
$flag=0;
(y%400==0)?($flag=1):((y%4==0)&&(y%100!=0)?($flag=1):($flag=0));


?>
Share This
Previous Post
Next Post

FYJC XI standard online admisson Process and declaraton of Merit list . Cut off List For prevous year also . 10 Th Results onlne declaraton Maharashtra Region .

0 comments: