From b0564ea6768118a8a16f405d2c55c8e446085423 Mon Sep 17 00:00:00 2001 From: horus Date: Mon, 14 Nov 2022 23:01:17 +0100 Subject: php 8 support --- functions.php | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/functions.php b/functions.php index 7dc32ed..6e45afa 100644 --- a/functions.php +++ b/functions.php @@ -11,19 +11,6 @@ function get_dances(){ return json_decode( file_get_contents( __DIR__ . '/views/things/bpm/dances.json' ), true ); } -function str_starts_with( $haystack, $needle ) { - $length = strlen( $needle ); - return substr( $haystack, 0, $length ) === $needle; -} - -function str_ends_with( $haystack, $needle) { - $len = strlen($needle); - if ($len == 0) { - return true; - } - return substr($haystack, -$len) === $needle; -} - function get_ghrss_feeds() { require_once __DIR__ . '/views/things/ghrss/ghrss.db.php'; $result = $db->query("SELECT name FROM language ORDER BY name;"); -- cgit v1.2.3