Update string.utils.php

This commit is contained in:
Namhyeon Go 2020-02-21 14:12:01 +09:00 committed by GitHub
parent a6976d1a56
commit b0a538459d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -151,6 +151,13 @@ if(!is_fn("explode_by_line")) {
}
}
// Deprecated: split_by_line()
if(!is_fn("split_by_line")) {
function split_by_line($str) {
return explode_by_line($str);
}
}
if(!is_fn("explode_storage_file_by_line")) {
function explode_storage_file_by_line($filename, $options=array()) {
return explode_by_line(read_storage_file($filename, $options));