Is::__callStatic()

Calls the virtual method that has been created.

Table of Contents
  1. Description
  2. Example

Description

Is::__callStatic(string $kin, array $lot = []): mixed;

This method returns null if the virtual method being called is not yet defined. This default value is a falsy value, so it can be safely treated as a false value.

Example

test(Is::RGB('rgb(255, 192, 203)')); // Returns `null` because method `RGB()` is not yet defined

Is::__callStatic()

Calls the virtual method that has been created.

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.