Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
470 B
Plaintext
Raw Permalink Normal View History

{
"name": "array_count",
"type": "function",
"groups": ["Arrays"],
"description": "Counts the number of occurrences of a given value in an array.",
2022-01-13 08:56:17 -05:00
"arguments": [{
"arg": "array",
"description": "an array"
}, {
"arg": "value",
"description": "the value to count"
}],
"examples": [{
"expression": "array_count(array('a', 'b', 'c', 'b'), 'b')",
"returns": "2"
}],
"tags": ["number", "array", "occurrences", "given", "counts"]
}