Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
In this article
Applies to: ✅ Azure Data Explorer ✅ Azure Monitor ✅ Microsoft Sentinel
Calculates the number of elements in a dynamic array.
Deprecated aliases: arraylength()
array_length(
array)
Learn more about syntax conventions.
Name | Type | Required | Description |
---|---|---|---|
array | dynamic |
✔️ | The array for which to calculate length. |
Returns the number of elements in array, or null
if array isn't an array.
The following example shows the number of elements in the array.
print array_length(dynamic([1, 2, 3, "four"]))
Output
print_0 |
---|
4 |