Is::serial()

Checks for valid serialized string.

Table of Contents
  1. Description
  2. Example

Description

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

This method checks that the input provided is a valid serialized string.

Example

if (Is::serial('a:3:{i:0;i:0;i:1;s:1:"a";i:2;a:0:{}}')) {
    // …
}

Is::file()

Checks if current input is a valid file path.

Is::path()

Checks if current input is a valid path.

Is::serial()

Checks for valid serialized string.

Is::void()

Checks for empty string, array and object.