Pop\Pdf\Import::lastIndex PHP Метод

lastIndex() защищенный Метод

Method to return the last object index.
protected lastIndex ( array $arr ) : integer
$arr array
Результат integer
    protected function lastIndex(array $arr)
    {
        $objs = array_keys($arr);
        sort($objs);
        $last = null;
        foreach ($objs as $value) {
            $last = $value;
        }
        return $last;
    }