常用函数-maybe_unserialize()

0条评论

说明

对数据进行反序列化(如果数据已经被序列化)

用法

<?php maybe_unserialize( $original ) ?>

参数

$original

(字符串)(必需)必要时可能是未被序列化的原数据

默认值:None

返回的值

(混合)

未被序列化的数据可以是任何类型

示例

注释

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

函数历史

始见于2.0.0版本

源文件

maybe_unserialize()位于 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.