array_key_last

Supported Versions: PHP 7 >= 7.3.0, PHP 8
Gets the last key of an array
array_key_last(array $array): int|string|null
                                                                    $line .

                                                                    
strings(self::$space)->repeat($pr)) .

                                        (
$hasBorder() ? $applyBorderColor(self::$theme->getVariables()->get('borders.' $borderStyle '.right')) : '') .

                                        (
$key === array_key_last($lines) ? '' PHP_EOL);

                    }



                    return 
// Set box border top style.
                                                                    $line .

                                                                    
strings(self::$space)->repeat($pr)) .

                                        (
$hasBorder() ? $applyBorderColor(self::$theme->getVariables()->get('borders.' $borderStyle '.right')) : '') .

                                        (
$key === array_key_last($lines) ? '' PHP_EOL);

                    }



                    return 
// Set box border top style.
                                        ($hasBorder() ? $applyBorderColor(self::$theme->getVariables()->get('borders.' $borderStyle '.left')) : '') .

                                        
$applyTextAndBackgroundColor($currentLine) .

                                        (
$hasBorder() ? $applyBorderColor(self::$theme->getVariables()->get('borders.' $borderStyle '.right')) : '') .

                                        (
$key === array_key_last($lines) ? '' PHP_EOL);

                    }



                    return 
// Set box border top style.
                                                                    strings(self::$space)->repeat($prCurrent)) .

                                        (
$hasBorder() ? $applyBorderColor(self::$theme->getVariables()->get('borders.' $borderStyle '.right')) : '') .

                                        
strings(self::$space)->repeat($mr) .

                                        (
$key === array_key_last($lines) ? '' PHP_EOL);

                    }



                    return 
// Set box border top style.
                                                                    strings(self::$space)->repeat($pr)) .

                                        (
$hasBorder() ? $applyBorderColor(self::$theme->getVariables()->get('borders.' $borderStyle '.right')) : '') .

                                        
strings(self::$space)->repeat($mr) .

                                        (
$key === array_key_last($lines) ? '' PHP_EOL);

                    }



                    return 
// Set box border top style.
                                        $applyTextAndBackgroundColor($currentLine) .

                                        (
$hasBorder() ? $applyBorderColor(self::$theme->getVariables()->get('borders.' $borderStyle '.right')) : '') .

                                        
strings(self::$space)->repeat($mr) .

                                        (
$key === array_key_last($lines) ? '' PHP_EOL);

                    }



                    return 
// Set box border top style.