Is::void()

Checks for empty string, array and object.

Table of Contents
  1. Description
  2. Example

Description

Is::void(mixed $value): bool;

This method checks that the input provided is empty.

Example

if (Is::void("")) {
    // …
}

Please note that for this method, 0 and '0' is not considered empty. However, a string containing only white-space characters is considered empty.

Is::file()

Checks if current input is a valid file path.

Is::path()

Checks if current input is a valid path.

Is::void()

Checks for empty string, array and object.