函数原型
is_serialized( string $data, bool $strict = true ): bool
函数描述
Checks value to find if it was serialized.
是否弃用
未弃用
函数参数
-
$data
string
Required - Value to check to see if was serialized.
-
$strict
bool
Optional - Whether to be strict about the end of the string.
Default:
true
函数返回值
bool False if not serialized and true if it was.
函数位置
File: wp-includes/functions.php.
函数源码
is_serialized( $data );源码链接
变更日志
| Version | Description |
|---|---|
| 6.1.0 | Added Enum support. |
| 2.0.5 | Introduced. |

