Add WIP StringFormat

develop
sheychen 2018-07-02 18:47:09 +02:00
parent 9a5348cf35
commit 2517642d5c
1 changed files with 10 additions and 0 deletions

10
src/StringFormat.php Normal file
View 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);
}
}