for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Lesson03;
class CountDiv
{
public function solution($A, $B, $K)
$count = floor($B / $K) - floor($A / $K);
if ($A % $K === 0) {
$count++;
}
return (int) $count;