diff options
| author | horus | 2022-11-14 23:01:17 +0100 |
|---|---|---|
| committer | horus | 2022-11-14 23:01:17 +0100 |
| commit | b0564ea6768118a8a16f405d2c55c8e446085423 (patch) | |
| tree | c834599c2fe9c136e048f1d735ec845b8cb074eb | |
| parent | 3c4aa25af0cd6f56db85d503ab552d39b81b5c17 (diff) | |
| download | moehring-b0564ea6768118a8a16f405d2c55c8e446085423.tar.gz | |
php 8 support
| -rw-r--r-- | functions.php | 13 |
1 files changed, 0 insertions, 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;"); |
