I'm trying to calculate elapsed time and I'm having trouble using mktime with variables. Here's my code;
$reformat_stop = str_replace(":", ",", $x[stop]) . ",1,1,2002"; $stop=mktime($reformat_stop); I don't know how to format the code for mktime to use a variable. I keep getting -1 for $stop but if I hard code a value in mktime it works fine. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]