Update string.utils.php

This commit is contained in:
Namhyeon Go 2020-02-21 13:51:31 +09:00 committed by GitHub
parent d7031e7a21
commit 6ccdb2d1b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,7 +2,7 @@
/**
* @file string.utils.php
* @created_on 2018-05-27
* @updated_on 2020-01-25
* @updated_on 2020-02-21
* @author Go Namhyeon <gnh1201@gmail.com>
* @brief String utility helper
*/
@ -157,7 +157,6 @@ if(!is_fn("explode_storage_file_by_line")) {
}
}
// https://stackoverflow.com/questions/834303/startswith-and-endswith-functions-in-php
if(!is_fn("is_prefix")) {
function is_prefix($haystack, $needle) {
$length = strlen($needle);