Update string.utl.php

This commit is contained in:
Namhyeon Go 2018-05-27 02:04:05 +09:00 committed by GitHub
parent 521033f9e0
commit 20a57f56e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,14 +65,14 @@ if(!function_exists("get_cutted_string")) {
}
}
if(!function_exists("explode_string_lines")) {
function explode_string_lines($str) {
if(!function_exists("explode_by_line")) {
function explode_by_line($str) {
return preg_split('/\n|\r\n?/', $str);
}
}
if(!function_exists("read_storage_file_by_line")) {
function read_storage_file_by_line($filename, $options=array()) {
return explode_string_lines(read_storage_file($filename, $options));
return explode_by_line(read_storage_file($filename, $options));
}
}