1 | <?php |
||
5 | class Helper |
||
6 | { |
||
7 | /** |
||
8 | * @param string|array $var |
||
9 | * |
||
10 | * @return array |
||
11 | */ |
||
12 | 972 | public static function toArray($var) |
|
20 | |||
21 | /** |
||
22 | * Flatten a multi-dimensional array |
||
23 | * |
||
24 | * @param array $arr |
||
25 | * |
||
26 | * @return array |
||
27 | */ |
||
28 | 972 | public static function flatten(array $arr) |
|
38 | |||
39 | /** |
||
40 | * Convert a string to snake case |
||
41 | * |
||
42 | * @param string $str |
||
43 | * |
||
44 | * @return string |
||
45 | */ |
||
46 | 580 | public static function snakeCase($str) |
|
50 | } |
||
51 |