index : archweb32 | |
Archlinux32 website | gitolite user |
summaryrefslogtreecommitdiff |
author | Andreas Baumann <mail@andreasbaumann.cc> | 2025-03-28 08:23:09 +0100 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2025-03-28 08:23:09 +0100 |
commit | 8bfe0232b515566d0fe78b6a235810153f6ad5ec (patch) | |
tree | 8d2f896150a5ed80c246e3cea9447630031a8a0e /lib | |
parent | d72e16c5c07bd064a72e080b5e63cf267bc1bbe6 (diff) |
-rw-r--r-- | lib/php8funcs.php | 7 |
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); +} |