常用函数-is_serialized_string()

0条评论

说明

查看序列化的数据是否为字符串类型

用法

<?php is_serialized_string( $data ) ?>

参数

$data

(混合)(必需)被序列化的数据

默认值:None

返回的值

(混合)

若不是序列化的字符串,返回False,若是序列化的字符串,返回true

示例

注释

  • 序列化数据,使之能以PHP能够理解的方式被存储在数据库中并能以PHP能够理解的方式从数据库中被检索。

函数历史

始见于2.0.5版本

源文件

is_serialized_string()位于 wp-includes/functions.php中。

发表新评论

此内容将保密,不会被其他人看见。
  • 自动将网址与电子邮件地址转变为链接。
  • 允许HTML标签:<a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • 自动断行和分段。

更多关於格式化选项的信息

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.