|
|
@@ -21,4 +21,16 @@ abstract class oracle {
|
|
|
return "";
|
|
|
}
|
|
|
}
|
|
|
+// backwards compatibility
|
|
|
+if (!function_exists('str_starts_with')) {
|
|
|
+ function str_starts_with($haystack, $needle) {
|
|
|
+ return strncmp($haystack, $needle, strlen($needle)) === 0;;
|
|
|
+ }
|
|
|
+}
|
|
|
+if (!function_exists('str_contains')) {
|
|
|
+ function str_contains($haystack, $needle) {
|
|
|
+ return strpos((string)$haystack, (string)$needle) !== false;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
?>
|