lp__is_serialized( $data )

This function checks if a given string is a serialized value. It returns true if the string is a serialized value and can be unserialized, otherwise it returns false.

Plugin

Namespace

Launchpad

Parameters

string

$data

The string to check for serialization.

Return

bool

True if the string is serialized, false otherwise.

Source

File: \includes\lp-utility-functions.php

function lp__is_serialized($data) {
    return @unserialize($data) !== false;
}

Related

Used to insert a value or an array into an array before or after a specified identifier.

Used to checks if an array is associative.

Used to retrieve the value from an array based on a given key.