WordPress.org

Ready to get started?Download WordPress

Codex

Function Reference/is serialized string

Contents

Description

Check whether serialized data is of string type.

Usage

<?php is_serialized_string$data ?>

Parameters

$data
(mixed) (required) Serialized data
Default: None

Return Values

(boolean) 
False if not a serialized string, true if it is.

Examples

Notes

  • Data might need to be serialized to allow it to be successfully stored and retrieved from a database in a form that PHP can understand.

Change Log

Since: 2.0.5

Source File

is_serialized_string() is located in wp-includes/functions.php.

Related

See also index of Function Reference and index of Template Tags.