array_length()
Calculates the number of elements in a dynamic array.
Deprecated aliases: arraylength()
Syntax
array_length(
array)
Learn more about syntax conventions.
Parameters
Name | Type | Required | Description |
---|---|---|---|
array | dynamic |
✔️ | The array for which to calculate length. |
Returns
Returns the number of elements in array, or null
if array isn't an array.
Examples
The following example shows the number of elements in the array.
print array_length(dynamic([1, 2, 3, "four"]))
Output
print_0 |
---|
4 |
Povratne informacije
https://aka.ms/ContentUserFeedback.
Uskoro: tokom 2024. postepeno ćemo ukidati probleme s uslugom GitHub kao mehanizam povratnih informacija za sadržaj i zamijeniti ga novim sistemom povratnih informacija. Za više informacija, pogledajtePošalјite i prikažite povratne informacije za