Is::URL()

Checks for valid URL address.

Table of Contents
  1. Description
  2. Example

Description

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

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

Example

if (Is::URL('http://example.com')) {
    // …
}

Is::URL()

Checks for valid URL 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.