index : archweb32 | |
Archlinux32 website | gitolite user |
summaryrefslogtreecommitdiff |
-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); +} |