Home > Backend Development > PHP Tutorial > 一个小疑点 用serialize()函数之后,返回的string保存在内存吗

一个小疑点 用serialize()函数之后,返回的string保存在内存吗

WBOY
Release: 2016-06-13 13:28:41
Original
1058 people have browsed it

一个小问题 用serialize()函数之后,返回的string保存在内存吗?
如题,求大神回答!

------解决方案--------------------
你必须用一个变量去承载,否则就白做了

$s = serialize(array(1,2,3));
------解决方案--------------------
你没有保存在变量中。应该说是在浪费内存。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template