<?php $block_line = (int) ceil(7/3); $totalSum = 40; if($block_line > 1){ $overLine = $block_line - 1; $totalSum = 40 - $overLine*2; } $singleSum = (int) $totalSum/2; var_dump($singleSum);
You have javascript disabled. You will not be able to edit any code.