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