1 | <?php |
||
17 | class Utils |
||
18 | { |
||
19 | public static function recurseDelete(string $src) |
||
47 | |||
48 | /** |
||
49 | * Get absolute URL for Portal2. |
||
50 | * |
||
51 | * @param string $url |
||
52 | * |
||
53 | * @return string |
||
54 | */ |
||
55 | public static function absoluteUrl(string $url): string |
||
59 | |||
60 | /** |
||
61 | * Replacement for the ucfirst function for proper Multibyte String operation. |
||
62 | * Delete function will exist as mb_ucfirst. |
||
63 | * |
||
64 | * @param string $string |
||
65 | * |
||
66 | * @return string |
||
67 | */ |
||
68 | public static function mbUcfirst(string $string): string |
||
72 | } |
||
73 |
If you suppress an error, we recommend checking for the error condition explicitly: