Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Round fractions up
<?php ceil(int|float $num): float
<?php     public function splitIn($numberOfGroups)

    {

        return $this->chunk(ceil($this->count() / $numberOfGroups));

    }
<?php     public function splitIn($numberOfGroups)

    {

        return $this->chunk(ceil($this->count() / $numberOfGroups));

    }
<?php         $this->total = $total;

        $this->perPage = (int) $perPage;

        $this->lastPage = max((int) ceil($total / $perPage), 1);

        $this->path = $this->path !== '/' ? rtrim($this->path, '/') : $this->path;

        $this->currentPage = $this->setCurrentPage($currentPage, $this->pageName);

        $this->items = $items instanceof Collection ? $items : Collection::make($items);
<?php         $short = max(0, $length - mb_strlen($value));

        $shortLeft = floor($short / 2);

        $shortRight = ceil($short / 2);



        return mb_substr(str_repeat($pad, $shortLeft), 0, $shortLeft).

               $value.
<?php             while (($len = strlen($string)) < $length) {

                $size = $length - $len;



                $bytesSize = (int) ceil($size / 3) * 3;



                $bytes = random_bytes($bytesSize);