1 | <?php |
||
18 | class ArrayUtils |
||
19 | { |
||
20 | |||
21 | /** |
||
22 | * Utility method to convert an object to an array |
||
23 | * |
||
24 | * @param object $object |
||
25 | * @return array |
||
26 | */ |
||
27 | public static function objectToArray($object) |
||
35 | |||
36 | /** |
||
37 | * Utility method that allow to remove a list of keys from a given array. |
||
38 | * This method does not modify the passed array but builds a new one. |
||
39 | * |
||
40 | * @param array $array |
||
41 | * @param string[] $keys |
||
42 | * @return array |
||
43 | */ |
||
44 | public static function removeKeys($array, $keys) |
||
48 | } |
||
49 |