You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
excel_handle/app/common.php

11 lines
284 B

4 years ago
<?php
// 应用公共文件
function startsWith($haystack, $needle)
{
return strncmp($haystack, $needle, strlen($needle)) === 0;
}
function endsWith($haystack, $needle)
{
return $haystack != '' && $needle != '' && substr_compare($haystack, $needle, -strlen($needle)) === 0;
}