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

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

WBOY
WBOYOriginal
2016-06-13 10:26:25762browse

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

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

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

Statement:
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