Core Function
View Source on Trac ↗ is_serialized()
is_serialized( mixed $data, mixed $strict = true ) Checks value to find if it was serialized.
Parameters 1 required
| Name / Type | Description |
|---|---|
| $data string | Value to check to see if was serialized. Required |
| $strict bool | Optional. Whether to be strict about the end of the string. Default true. |
Return Value
(bool)
False if not serialized and true if it was.
Function Information
Since Version
2.0.5
Source File
wp-includes/functions.php
Advertisement