Home > php教程 > php手册 > 如何运用PHP函数pack处理资料

如何运用PHP函数pack处理资料

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-13 11:10:42
Original
909 people have browsed it

我们在学习

PHP函数pack定义:

压缩资料到位字符串之中。

语法:

string pack(string format, mixed [args]...);

返回值:

字符串

PHP函数pack种类:

资料处理

PHP函数pack内容说明

本函数用来将资料压缩打包到位的字符串之中。本函数和 Perl 的同名函数功能用法完全相同。参数 format 为压缩的格式

<ol class="dp-xml">
<li class="alt"><span><span class="tag"></span><span class="tag-name">php</span><span> </span></span></li>
<li><span>echo pack("C3",80,72,80);  </span></li>
<li class="alt">
<span class="tag">?></span><span> </span>
</li>
</ol>
Copy after login

输出:

PHP

以上就是PHP函数pack的定义和用法介绍。


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 Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template