ペニス

This commit is contained in:
2025-12-31 06:27:14 +09:00
parent 6c6e715707
commit 9a5d5db5f3
3 changed files with 9 additions and 2 deletions

View File

@@ -385,4 +385,11 @@ function countmatch(string $str): bool {
function getImageInfo(string $url): \Site\Lib\Image {
$img = new \Site\Lib\Image($url);
return $img;
}
// PHP 8.3と8.4の場合
if (!function_exists('array_last')) {
function array_last(array $array): mixed {
return $array === [] ? null : $array[array_key_last($array)];
}
}