Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/php8funcs.php
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2025-03-28 08:23:09 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2025-03-28 08:23:09 +0100
commit8bfe0232b515566d0fe78b6a235810153f6ad5ec (patch)
tree8d2f896150a5ed80c246e3cea9447630031a8a0e /lib/php8funcs.php
parentd72e16c5c07bd064a72e080b5e63cf267bc1bbe6 (diff)
mirrorlist.php: more mirror ignoring
Diffstat (limited to 'lib/php8funcs.php')
-rw-r--r--lib/php8funcs.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/php8funcs.php b/lib/php8funcs.php
new file mode 100644
index 0000000..358cf98
--- /dev/null
+++ b/lib/php8funcs.php
@@ -0,0 +1,7 @@
+<?php
+
+function str_starts_with($string, $startString)
+{
+ $len = strlen($startString);
+ return (substr($string, 0, $len) === $startString);
+}