diff options
Diffstat (limited to 'functions.php')
| -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;"); |
