Mecha CMS

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) []),
    Is::void(new Anemon),
    Is::void(new Anemon([1, 2, 3, 4, 5]))
);

Result:

false
false
false
true
true
true
true
true
false