REF
AbCdEf
bCdEf
bCd
AbCd
AbCdEf
f
A
d
f
ABCDEF
abcdef
AbCdEfPQR
AbCdEfPQR (mutate)
A
A
65
41
123 (num)
123 (str)
abc[cr][lf][0x02]def
|
PHP
local $str;
$str = 'AbCdEf';
substr($str, 1)
substr($str, 1, 3)
substr($str, 0, 4)
substr($str, 0, 8)
substr($str, -1, 1)
$str{0}
$str{3}
$str{strlen($str)-1}
strtoupper($str)
strtolower($str)
$str.'PQR';
$str .= 'PQR';
chr(65)
chr(0x41)
ord('A')
'123' (automatic)
123 (automatic)
"abc\r\n\x02def"
trim / ltrim / rtrim
sprintf
str_replace
strcmp
strstr
strpos / strrpos
strrchr
|
Visual Basic 6
Dim str As String
str= "AbCdEf"
Mid(str, 2)
Mid(str, 2, 3)
Left(str, 4)
Left(str, 8)
Right(str, 1)
Mid(str,1,1)
Mid(str,4,1)
Mid(str,Len(str),1)
UCase(str)
LCase(str)
str & "PQR"
str = str & "PQR"
Chr(65)
Chr(&H41)
Asc("A")
Val("123")
123
|
AMX
CHAR str[10]
str = 'AbCdEf'
?
?
LEFT_STRING(str,4)
LEFT_STRING(str,8)
RIGHT_STRING(str,1)
str[1]
str[4]
str[LENGTH_STRING(str)]
UPPER_STRING(str)
LOWER_STRING(str)
"str,'PQR'"
str = "str,'PQR'"
"65"
"$41"
'A'
ITOHEX('A')
ATOI('123')
|
Crestron
STRING str[10];
str = "AbCdEf";
RIGHT(str, LEN(str)-1)
MID(str, 2, 3)
LEFT(str, 4)
LEFT(str, 8)
RIGHT(str, 1)
MID(str,1,1) / CHR(BYTE(str,1))
MID(str,4,1) / CHR(BYTE(str,4))
MID(str,LEN(str),1) / CHR(BYTE(str,LEN(str)))
UPPER(str)
LOWER(str)
str + "PQR"
str = str + "PQR"
Chr(65)
Chr(0x41)
BYTE("A",1)
?
ITOA("123")
ATOI(123)
|