hasIntKeys.php
Table of Contents
Functions
- hasIntKeys() : bool
- Indicates if all the keys in an array are integers.
Functions
hasIntKeys()
Indicates if all the keys in an array are integers.
hasIntKeys(array<string|int, mixed> $array) : bool
This function checks if every key in the provided array is an integer. Returns true only if all keys are integers, false otherwise.
Parameters
- $array : array<string|int, mixed>
-
The array to check.
Tags
Return values
bool —True if all keys are integers, false otherwise.