How to get an integer number from time

I have this


$nr_sec = time();
$days_rem = $end_date - $nr_sec;
$days_rem = $days_rem/(24*60*60);

echo $days_rem;

and I get something like 358.69438657407.
I want the result to be only 358.
How can I do this?

Thank you Joe.

Round
Floor
Ceil

What ever suits you the best.

For you to achieve 358 from 358.69438657407. I would suggest Floor.