mirror of
https://github.com/godotengine/godot-question2answer.git
synced 2026-01-01 01:48:37 +03:00
This project lived only on the server without version control. This is now the starting point for the repository.
20 lines
386 B
PHP
20 lines
386 B
PHP
<?php
|
|
|
|
if (!function_exists('starts_with')) {
|
|
function starts_with($haystack, $needle)
|
|
{
|
|
return $needle === "" || strpos($haystack, $needle) === 0;
|
|
}
|
|
}
|
|
|
|
if (!function_exists('ends_with')) {
|
|
function ends_with($haystack, $needle)
|
|
{
|
|
return $needle === "" || substr($haystack, -strlen($needle)) === $needle;
|
|
}
|
|
}
|
|
|
|
|
|
/*
|
|
Omit PHP closing tag to help avoid accidental output
|
|
*/ |