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