1 | <?php |
||
5 | class Str |
||
6 | { |
||
7 | /** |
||
8 | * The cache of studly-cased words. |
||
9 | * |
||
10 | * @var array |
||
11 | */ |
||
12 | protected static $studlyCache = []; |
||
13 | |||
14 | /** |
||
15 | * Create StudlyCase string from _ separated string. |
||
16 | * |
||
17 | * @param string $value |
||
18 | * |
||
19 | * @return string |
||
20 | */ |
||
21 | public static function studly($value) |
||
35 | |||
36 | /** |
||
37 | * Append a character to a string if it doesn't already exist. |
||
38 | * |
||
39 | * @param string $value |
||
40 | * @param string $char |
||
41 | * |
||
42 | * @return string |
||
43 | */ |
||
44 | public static function append($value, $char) |
||
52 | } |
||
53 |