Overs problem solve

 

$overs = 19.6;
$str_arr = explode('.',$overs);
if(isset($str_arr[1])){
if($str_arr[1] ==6){
$overs = $str_arr[0] + 1;
}
}
echo $overs;


Post a Comment

0 Comments