ForNext
Only Do What Only You Can Do
064. extract character
Hyperpolyglot Interpreted Languages: PHP, Perl, Python, Ruby より (2012.05.08)
VBScript
JScript
Perl
can't use index notation with strings: substr("lorem ipsum", 6, 1)
PHP
syntax error to use index notation directly on string literal: $s = "lorem ipsum"; $s[6];
Python
'lorem ipsum'[6]
Ruby
"lorem ipsum"[6]