Voucher Format

This commit is contained in:
Ibnu Maksum
2023-10-18 17:23:47 +07:00
parent e88d1f02a6
commit b9537d4a4b
7 changed files with 91 additions and 23 deletions

View File

@ -86,4 +86,17 @@ class Lang
{
return ucwords(str_replace('_', ' ', $text));
}
public static function randomUpLowCase($text){
$jml = strlen($text);
$result = '';
for($i = 0; $i < $jml;$i++){
if(rand(0,99)%2){
$result .= strtolower(substr($text,$i,1));
}else{
$result .= substr($text,$i,1);
}
}
return $result;
}
}