-----------------------------------------TEST 1 (get some_var):-----------------------------------------
array(8) {
[0]=>
int(1)
[1]=>
float(2.2)
[2]=>
bool(true)
[3]=>
bool(false)
[4]=>
NULL
[5]=>
string(11) "some string"
[6]=>
string(16) "protected string"
[7]=>
string(4) "true"
}
-----------------------------------------TEST 2 (use alias):-----------------------------------------
array(8) {
[0]=>
int(1)
[1]=>
float(2.2)
[2]=>
bool(true)
[3]=>
bool(false)
[4]=>
NULL
[5]=>
string(11) "some string"
[6]=>
string(16) "protected string"
[7]=>
string(4) "true"
}
-----------------------------------------TEST 3 (get section):-----------------------------------------
array(2) {
["some_var"]=>
array(8) {
[0]=>
int(1)
[1]=>
float(2.2)
[2]=>
bool(true)
[3]=>
bool(false)
[4]=>
NULL
[5]=>
string(11) "some string"
[6]=>
string(16) "protected string"
[7]=>
string(4) "true"
}
["other_var"]=>
NULL
}
-----------------------------------------TEST 4 (get all):-----------------------------------------
array(3) {
["section"]=>
array(2) {
["subsection"]=>
array(1) {
["other_subsection"]=>
array(2) {
["some_var"]=>
array(8) {
[0]=>
int(1)
[1]=>
float(2.2)
[2]=>
bool(true)
[3]=>
bool(false)
[4]=>
NULL
[5]=>
string(11) "some string"
[6]=>
string(16) "protected string"
[7]=>
string(4) "true"
}
["other_var"]=>
NULL
}
}
["second_section"]=>
array(1) {
["subsec"]=>
array(1) {
["xyz"]=>
int(222)
}
}
}
["empty section..."]=>
array(0) {
}
["other section"]=>
array(1) {
["is this working?"]=>
string(16) "it looks like..."
}
}
|