Config Manager Web Editor (Demo)
int: no quotes
testvar
10
string: requires quotes
teststring
'hello'
string: unless using type prefix
teststring2
string
integer
double
boolean
hello
A Section
A comment
testvar2
'hello'
type cast
testcast
string
integer
double
boolean
'1324'
Special characters
incorrect method (single quotes)
testspecial
'new line: \n carriage return: \r tab: \t'
correct method (double quotes)
testspecial2
"new line: \n carriage return: \r tab: \t"
escaping special chars when using double quotes
testspecial3
"new line: \\n carriage return: \\r tab: \\t"
Array
when a variable name is repeated within a section
config reader will automatically recognise
it as an array
testarray
10
testarray
20
testarray
30
Assoc array
testassoc.hello
10
testassoc
20
testassoc.bye
30
Type Cast
integer
testint
string
integer
double
boolean
10.12
double
testint
string
integer
double
boolean
10.12
string
testint
string
integer
double
boolean
10.12
boolean
testint
string
integer
double
boolean
10.12