Eas (Easy Application Script) by Molaskes

Syntax Guide:13. Chars of a String

strings = arrays of chars
‌ Strings are considered AArrays of chars. The first character is strname[0] and strname[strname?-1] is the last character. You can overwrite a character with a whole string (numbers will be typecast to string).
Eas:
c s[3]
PHP:
$c=$s{3};
# or #
$c=$s[3];
JS:
c=s.charAt(3)
JS:
s=s.substr(0,5)+"X"+s.substr(6)
PHP:
$s{5}="X";
Eas:
s[5] "X"
JS:
s=s.substr(0,5)+s.substr(6)
PHP:
$s{5}="";
Eas:
s[5] ?
JS:
s=s.substr(0,5)+"hello"+s.substr(6)
PHP:
$s=substr($s,0,5)."hello".substr($s,6);
Eas:
s[5] "hello"
13. Chars of a String
D Download Eas 4B
C Contact
Esc Search / Table of Contents