| Total Complexity | 2 |
| Total Lines | 20 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | class ArrayUtil |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * Replaces a value in a multidimensional array with another value |
||
| 16 | * @param int|string $search |
||
| 17 | * @param int|string $replace |
||
| 18 | * @param array $haystack |
||
| 19 | * @return array |
||
| 20 | */ |
||
| 21 | public static function searchAndReplace($search, $replace, $haystack) |
||
| 32 | } |
||
| 33 | } |