initial commit

This commit is contained in:
crazywhalecc
2022-05-12 20:27:01 +08:00
parent ab34f6f1f3
commit 06b76e4c96
8 changed files with 580 additions and 3 deletions

View File

@@ -0,0 +1,14 @@
<?php
declare(strict_types=1);
namespace ZM\Logger;
class TextUtil
{
public static function separatorToCamel(string $string, string $separator = '_'): string
{
$string = $separator . str_replace($separator, ' ', strtolower($string));
return ltrim(str_replace(' ', '', ucwords($string)), $separator);
}
}