文件流 - PHP字符串进制转换

WBOY
Release: 2016-06-06 20:21:41
Original
1468 people have browsed it

RT,在PHP中可否将普通字符串转换为和文件流一样的二进制数据?或者其它非肉眼识别进制数据?

回复内容:

RT,在PHP中可否将普通字符串转换为和文件流一样的二进制数据?或者其它非肉眼识别进制数据?

PHP中字符串对象既可以存储普通的字符串也能存储二进制数据,更准确的说,其本身就是二进制安全的。
你所谓的文件流一样的二进制数据根本无需转换,亦或你想到达的肉眼不能识别的数据不叫转换,应该叫加密更加准确。

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!