English 中文(简体)
是什么序列? [闭门]
原标题:What is serialize? [closed]

当你编集数据时会发生什么情况? 很严重的是,我 both忙地谈论了什么使用,我一直在通过网络搜索,但似乎只给出使用,而不是使用它的原因。 。 我的任务是在将数据编成字句中的“元数据”之前,先把数据编成序列,然后将数据列为“元数据”的“元数据”。 任何帮助都将受到赞赏。 感谢。

最佳回答

Wiki: [S]erialization is the process of converting a data structure or object state into a format that can be stored [...] and "resurrected" later in the same or another computer environment.

简言之,通过序列化,你可以将物体储存在可转让和可储存的状态中。 将该实物物体转至XML,以送交SOAP服务,是序列化的。 PHP将$_SESSION 阵列编成会议档案(至少是缺席)。 用户信息管理系统将你的物体编成一个坐标表JSON,可以代表服务器和浏览器之间拟转让的序列物体。

至于你的问题,我不知道这如何适用于言语,尽管或你的实际问题是什么,或许你应该表明某种准则。

问题回答

可能需要对数据进行分类,以便以PHP能够理解的形式成功地储存和检索数据库。

文字压力在序列化方面使用不同的功能。 核对以下职能参考资料

  1. maybe serialize <?php maybe_serialize( $data ); ?>
  2. is serialized <?php is_serialized( $data ) ?>

一般而言,序列化是你可以储存的物品或数据结构的一种方式。 Java有自己的路, Java有神学家等等。

它对数据库储存物体或复杂数据结构确实有用。

Serialization makes it possible to save your object/data structure to memory or a file. When you de-serialize you are able to retrieve this information in the same state as it was before.

来自Wikipedia:

http://en.wikipedia.org/wiki/Serialization

Serialization is the process of converting a data structure or object state into a format that can be stored (for example, in a file or memory buffer, or transmitted across a network connection link) and "resurrected" later in the same or another computer environment.

为了回答你的问题,实际发生的情况是,物体的转换和构造方式可以日后检索这些数据。 例如,你可将物体编成Xml结构。

飞行

这一过程具有可保存的代表性,其价值对于储存或通过购买力平价值而不失去其类型和结构有用。

UN-飞行:

This process takes a single serialized variable and converts it back into a PHP value.

你们问,为什么我们把数据序列化。 这些数据是按(作为一系列参照)格式储存或传送的,如果在检索期结束时重新编号,那么所储存的比照格式就具有意义。

WordPress has a reputation of being very portable but after reading a recent article on WPGarage.com, there is a certain condition in which the data in WordPress can become non-portable. It has to do with the serialization of data. However, they offer up a few different ways in which to deal with the problem so that you don’t lose data via a database dump.





相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...

热门标签