View User

This commit is contained in:
Ibnu Maksum
2023-08-21 17:09:44 +07:00
parent 1cb5d9236f
commit 46e0f981b0
5 changed files with 241 additions and 35 deletions

View File

@ -31,4 +31,22 @@ class Lang
return $phone;
}
}
public static function dateFormat($date){
global $config;
return date($config['date_format'], strtotime($date));
}
public static function dateTimeFormat($date){
global $config;
return date($config['date_format']. ' H:i', strtotime($date));
}
public static function nl2br($text){
return nl2br($text);
}
public static function arrayCount($arr){
return count($arr);
}
}