首页 WordPress函数大全 is_serialized()

is_serialized()

2020-05-02 / 2524阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

is_serialized( string $data, bool $strict = true )

检查值以查找是否已序列化。

描述

如果$ data不是字符串,则返回值将始终为false。序列化的数据始终是字符串。

参数

$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 value: true

返回

(bool) False if not serialized and true if it was.

大家谈论
    我的见解