Add WIP StringFormat
This commit is contained in:
parent
9a5348cf35
commit
2517642d5c
|
@ -0,0 +1,10 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Krutush\Template;
|
||||||
|
|
||||||
|
class StringFormat{
|
||||||
|
public static function ucfirst(string $str): string{
|
||||||
|
$fc = mb_strtoupper(mb_substr($str, 0, 1));
|
||||||
|
return $fc.mb_substr($str, 1);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue