Function __global->array_intersect_assoc
Definitions
sources_custom/phpstub.php
- Calculate the intersection of arrays with additional index check.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: array
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $array1 | array | No | No | required parameter | N/A | N/A | First array |
| ...$arrays | array | No | Yes | required parameter | N/A | N/A | ...$arrays Other arrays |
Returns
- The intersection
- Type: array
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Calculate the intersection of arrays with additional index check.
*
* @param array $array1 First array
* @param array $arrays ...$arrays Other arrays
* @return array The intersection
*/
function array_intersect_assoc(array $array1, array ...$arrays) : array
* Calculate the intersection of arrays with additional index check.
*
* @param array $array1 First array
* @param array $arrays ...$arrays Other arrays
* @return array The intersection
*/
function array_intersect_assoc(array $array1, array ...$arrays) : array

