ForNext
Only Do What Only You Can Do
095. size
Hyperpolyglot Interpreted Languages: PHP, Perl, Python, Ruby より (2012.05.08)
VBScript
JScript
Perl
$#a + 1 or scalar(@a)
PHP
count($a)
Python
len(a)
Ruby
a.size a.length # same as size