class Test extends Controller {
public function start_process(){
$begin_time = time();
echo $begin_time ; // suppose it shows 1318412333
// statement 1
// statement 2
// statement 3
// statement 4
// statement 5
// statement 6
// some more code
$this->end_process($begin_time);
}
public function end_process($begin_time){
$end_time = time();
echo $begin_time . " " . $end_time;
}
}
Now when i echo in end_process function . Suppose end_time is 1318412390 i get begin_time same as end_time. Why does this happen.. How do get the original begin_time which was set in first function