Update string.utl.php

This commit is contained in:
Namhyeon Go 2018-09-10 01:37:59 +09:00 committed by GitHub
parent e4efe7358d
commit b2688fc6b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,7 +22,7 @@ if(!function_exists("parse_tel_number_kr")) {
if(!function_exists("get_converted_string")) {
function get_converted_string($str, $to_charset, $from_charset, $method="iconv") {
$output = false;
$output = "";
switch($method) {
case "iconv":
@ -35,6 +35,8 @@ if(!function_exists("get_converted_string")) {
$output = mb_convert_encoding($str, $to_charset, $from_charset);
}
break;
default:
$output = $str;
}
return $output;