Add WIP StringFormat
This commit is contained in:
parent
9a5348cf35
commit
2517642d5c
10
src/StringFormat.php
Normal file
10
src/StringFormat.php
Normal file
@ -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
Block a user