1 2 3 4 5
<?php list($whole, $decimal) = sscanf(1.5, '%d.%d'); var_dump($whole, $decimal);
1 2
int(1) int(5)