ArraysHelper
in package
ArraysHelper Class
Table of Contents
- inMultiArray() : bool
- Like in_array but going deeper, for multidimensional arrays
- multiArraySearch() : array<string|int, mixed>|null
- Like array_search but going deeper, for multidimensional arrays
Methods
inMultiArray()
Like in_array but going deeper, for multidimensional arrays
public
static inMultiArray(string $needle, array<string|int, mixed> $haystack) : bool
Parameters
- $needle : string
- $haystack : array<string|int, mixed>
Return values
bool —multiArraySearch()
Like array_search but going deeper, for multidimensional arrays
public
static multiArraySearch(string $needle, array<string|int, mixed> $haystack) : array<string|int, mixed>|null
Parameters
- $needle : string
- $haystack : array<string|int, mixed>