Home > Backend Development > PHP Tutorial > 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
Release: 2016-09-09 08:27:58
Original
2100 people have browsed it

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.

Related labels:
php
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