If I’ve got a value in a variable eg 10.2333 and I need to use the 23 of the .2333 how do i do that? For more information, I am working out a time difference:
$started = $_SESSION['now'];
$ended = time();
$time1 = $ended - $started;
$time2 = $time1 / 60;
$time2 gives me for example 10.233
This should give you what you want.
Edit: Question turned out to be different. To get minutes and seconds of a unix timestamp, you should do the following.