I have a function like this:
function time_elapsed_string($ptime)
{
$date_time = strtotime(\"1348-10-10 04:30:01\") + $ptime;
$year = dat
This is a no brainer.
Yes - store the function call result of time_elapsed_string($ptime)
in an array, then use that to access your results. You're wasting CPU cycles otherwise!
// call it once
$result = time_elapsed_string($ptime);
// then use:
$result['date'];
$result['time'];
$result['difference'];