code

Determining the amount of elements in an array.

JavaScript

var haystack = ['fish', 'needle']
console.log(haystack.length);

PHP

print count(['fish', 'needle']);

See also