Supported Versions: PHP 7 >= 7.3.0, PHP 8
Gets the last key of an array
<?php array_key_last(array $array): int|string|null
<?php $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.
<?php $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.
<?php ($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.
<?php 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.
<?php 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.
<?php $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.