isNumeric

Definition

1
Arr::isNumeric(array $array): bool
Copied!

Description

Check if array contain only numeric values

Examples

1
Arr::isNumeric([1, '2', '3e10', 5.0002]) -> true
2
3
Arr::isNumeric([1, '2', '3e10', 5.0002, 'a']) -> false
Copied!
Last modified 2yr ago
Copy link