Home  >  Article  >  Backend Development  >  I use strings stored in blobs, so how does PHP convert them into strings when reading?

I use strings stored in blobs, so how does PHP convert them into strings when reading?

WBOY
WBOYOriginal
2016-09-09 08:27:582079browse

Problems encountered when storing session_data of session

Reply content:

Problems encountered when storing session_data of session

When used before, it was used as text. As long as it was an array or something, it was converted into json and saved first. The usage is no different from text.

blob can only store (non-character) binary data, and its use is no different from ordinary strings. Because PHP strings are binary safe, any binary data can be stored.

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