calculate days between 2 dys in php

February 26, 2009 at 21:41:38
Specs: Windows XP
hi everyone,
how to calculate difference between 2 dates,
i am retrieving the dates from html file.
Below is the code where i retrieve the data.
i want to calculate with each and everyone from present date. Its urgent
Thanx in advance
<?php

function parse_array($string,$beg_tag,$close_tag)
{
preg_match_all("($beg_tag(.*)$close_tag)siU", $string, $matching_data);
return $matching_data[0];
}

$string=file_get_contents("callback.html");
$src=parse_array($string,"<td nowrap=\"nowrap\">","</td>");

for($i=0;$i<count($src);$i++)
echo $src[$i]."</br>";
echo "</br>";

?>


See More: calculate days between 2 dys in php

Report •


#1
Report •

#2
February 26, 2009 at 22:26:45
i tried google, php.net
i want the array items to be passed to function. how?

Report •

Related Solutions


Ask Question