Is::email()

Checks for valid email address.

Table of Contents
  1. Description
  2. Example

Description

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

This method checks that the input provided is a valid email address pattern. This method does not validate the email address, only the email pattern.

Example

if (Is::email('asdf@example.com')) {
    // …
}

Is::email()

Checks for valid email address.

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.