Re: request

From: Date: Sat, 19 Apr 2003 20:18:43 +0000
Subject: Re: request
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-144496@lists.php.net to get a copy of this message
*This message was transferred with a trial version of CommuniGate(tm) Pro* You should be able to get a timestamp from that string using strtotime($user_date)(maybe with a little tweaking) and then use the function shown in this link to get the number of years,months,weeks,days, hours,minutes,and seconds via an array returned from the function. it just requires a $start_time and $end_time, both unix epoch time stamps. http://www.phpexamples.net/codeExSnippet-24.html Hope it helps! Rolf Brusletto rbrusletto@phpexamples.net www.phpexamples.net Marius wrote:
*This message was transferred with a trial version of CommuniGate(tm) Pro* $user_name = "Paul"; $user_date = "1981-08-03"; echo "$user_name is $user_age years old"; what should i do that $user_age count how old is user


« previous php.general (#144496) next »