2016-08-16 12:00:19 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
return [
|
|
|
|
// No arguments
|
|
|
|
[
|
|
|
|
'#VALUE!',
|
|
|
|
],
|
|
|
|
// NULL
|
|
|
|
[
|
|
|
|
false,
|
2017-01-23 05:49:10 +00:00
|
|
|
null,
|
2016-08-16 12:00:19 +00:00
|
|
|
],
|
|
|
|
// Boolean TRUE and NULL
|
|
|
|
[
|
|
|
|
true,
|
|
|
|
true,
|
2017-01-23 05:49:10 +00:00
|
|
|
null,
|
2016-08-16 12:00:19 +00:00
|
|
|
],
|
|
|
|
// Boolean FALSE and NULL
|
|
|
|
[
|
|
|
|
false,
|
|
|
|
false,
|
2017-01-23 05:49:10 +00:00
|
|
|
null,
|
2016-08-16 12:00:19 +00:00
|
|
|
],
|
|
|
|
// Both TRUE Booleans
|
|
|
|
[
|
|
|
|
true,
|
|
|
|
true,
|
|
|
|
true,
|
|
|
|
],
|
|
|
|
// Mixed Booleans
|
|
|
|
[
|
|
|
|
true,
|
|
|
|
true,
|
2017-01-23 05:49:10 +00:00
|
|
|
false,
|
2016-08-16 12:00:19 +00:00
|
|
|
],
|
|
|
|
// Mixed Booleans
|
|
|
|
[
|
|
|
|
true,
|
2017-01-23 05:49:10 +00:00
|
|
|
false,
|
2016-08-16 12:00:19 +00:00
|
|
|
true,
|
|
|
|
],
|
|
|
|
// Both FALSE Booleans
|
|
|
|
[
|
|
|
|
false,
|
|
|
|
false,
|
|
|
|
false,
|
|
|
|
],
|
|
|
|
// Multiple Mixed Booleans
|
|
|
|
[
|
|
|
|
true,
|
|
|
|
true,
|
|
|
|
true,
|
2017-01-23 05:49:10 +00:00
|
|
|
false,
|
2016-08-16 12:00:19 +00:00
|
|
|
],
|
|
|
|
// Multiple TRUE Booleans
|
|
|
|
[
|
|
|
|
true,
|
|
|
|
true,
|
|
|
|
true,
|
|
|
|
true,
|
|
|
|
],
|
|
|
|
// Multiple FALSE Booleans
|
|
|
|
[
|
|
|
|
false,
|
|
|
|
false,
|
|
|
|
false,
|
|
|
|
false,
|
|
|
|
false,
|
|
|
|
],
|
|
|
|
[
|
2017-01-23 05:49:10 +00:00
|
|
|
true,
|
2016-08-16 12:00:19 +00:00
|
|
|
-1,
|
|
|
|
-2,
|
|
|
|
],
|
|
|
|
[
|
2017-01-23 05:49:10 +00:00
|
|
|
false,
|
2016-08-16 12:00:19 +00:00
|
|
|
0,
|
|
|
|
0,
|
|
|
|
],
|
|
|
|
[
|
2017-01-23 05:49:10 +00:00
|
|
|
true,
|
2016-08-16 12:00:19 +00:00
|
|
|
0,
|
|
|
|
1,
|
|
|
|
],
|
|
|
|
[
|
2017-01-23 05:49:10 +00:00
|
|
|
true,
|
2016-08-16 12:00:19 +00:00
|
|
|
1,
|
|
|
|
1,
|
|
|
|
],
|
|
|
|
// 'TRUE' String
|
|
|
|
[
|
2017-01-23 05:49:10 +00:00
|
|
|
true,
|
2016-08-16 12:00:19 +00:00
|
|
|
'TRUE',
|
|
|
|
1,
|
|
|
|
],
|
|
|
|
// 'FALSE' String
|
|
|
|
[
|
|
|
|
true,
|
2017-01-23 05:49:10 +00:00
|
|
|
'FALSE',
|
2016-08-16 12:00:19 +00:00
|
|
|
true,
|
|
|
|
],
|
|
|
|
// Non-numeric String
|
|
|
|
[
|
2017-01-23 05:49:10 +00:00
|
|
|
'#VALUE!',
|
2016-08-16 12:00:19 +00:00
|
|
|
'ABCD',
|
|
|
|
1,
|
|
|
|
],
|
|
|
|
[
|
2017-01-23 05:49:10 +00:00
|
|
|
true,
|
2016-08-16 12:00:19 +00:00
|
|
|
-2,
|
|
|
|
1,
|
|
|
|
],
|
|
|
|
[
|
2017-01-23 05:49:10 +00:00
|
|
|
true,
|
2016-08-16 12:00:19 +00:00
|
|
|
-2,
|
|
|
|
0,
|
|
|
|
],
|
|
|
|
];
|