Mecha CMS

Detector.

Is::void()

Check for empty string, array and object.

2.0.02.2.0static
Is::void($x);

Example:

test(
    Is::void('a'),
    Is::void('0'),
    Is::void('1'),
    Is::void(' '),
    Is::void(""),
    Is::void([]),
    Is::void((object) []),
);

Result:

false
false
false
true
true
true
true