sdsdsa

Php code posted by seTajul
created at 28 Aug 09:08, updated at 09 Dec 17:06

Edit | Back
1
2
3
4
5
6
7
8
    <?php 
      $birthDate = "11/9/2002";
      $birthDate = explode("/", $birthDate);
      $age = (date("md", date("U", mktime(0, 0, 0, $birthDate[0], $birthDate[1], $birthDate[2]))) > date("md")
        ? ((date("Y") - $birthDate[2]) - 1)
        : (date("Y") - $birthDate[2]));
      echo $age;
    ?> 
290 Bytes in 2 ms with coderay