Array length

From Rosetta Code
Revision as of 16:11, 26 September 2015 by rosettacode>Bugmenot (Created page with "Determine the amount of elements in an array. == PHP == <lang php>print count(['apple', 'orange']); // Returns 2</lang> == See also == * String length")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Determine the amount of elements in an array.

PHP

<lang php>print count(['apple', 'orange']); // Returns 2</lang>

See also