File "functions.php"
Full Path: /home/clickysoft/public_html/jmapi5.clickysoft.net/vendor/mpdf/mpdf/src/functions.php
File size: 521 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
if (!function_exists('str_starts_with')) {
function str_starts_with($haystack, $needle)
{
return 0 === strncmp($haystack, $needle, \strlen($needle));
}
}
if (!function_exists('str_ends_with')) {
function str_ends_with($haystack, $needle)
{
if ('' === $needle || $needle === $haystack) {
return true;
}
if ('' === $haystack) {
return false;
}
$needleLength = \strlen($needle);
return $needleLength <= \strlen($haystack) && 0 === substr_compare($haystack, $needle, -$needleLength);
}
}