Saturday, 10 January 2015
Kapil Kumar-HTML CSS JavaScript jQuery AJAX ASP .NET PHP SQL tutorials, examples for web building: Disable 302 Redirection to Country Specific Domain...
Disable 302 Redirection to Country Specific Domain...: Disable 302 Redirection to Country Specific Domains If you are viewing a blog with address example.blogspot .c...
Sunday, 30 November 2014
Age calculation in php
Age calculation in php
Declare a function =>
- function getAge( $dob, $date )
- {
- $dob=strtotime($dob);
- $date=strtotime($date);
- $age = 0;
- while( $date > $dob = strtotime('+1 year', $dob))
- {
- ++$age;
- }
- return $age." years";
- }
Subscribe to:
Posts (Atom)