Pack and unpack are self-made binary "databases" and packunpack. Pack, unpack homemade binary "database", packunpack introduction pack, unpack function, if not touched socket, this may be unfamiliar, these two functions are used as pack for socket
This time to give you a brief talk about how to use the pack, unpack in PHP, how to use the pack and unpack in PHP, the following is the actual case, to see.
Pack
String Pack (String $format [, Mixed $args [, mixed $ ...])
This function is used to
We used to tell our friends that
PHP unpack function definition
Unzip the bit string data.
Grammar:
String Pack (string format, mixed [args] ...);
return value:
Array
PHP Unpack function types:
Data processing
PHP Unpack Function Content
refer to a set of function pack,unpack before looking at the following example. Any language with socket operation has a function dedicated to the package, PHP is no exception of course this set of functions is not just a package.Here's a quick
PHP data compression, encryption and decryption (pack, unpack), and data compression unpack
Data is frequently exchanged in network communication and file storage. To reduce network communication traffic, file storage size, and encrypted
We once introduced to friends
PHP unpack Function Definition
Extract the bit string.
Syntax:
String pack (string format, mixed [args]...);
Return Value:
Array
PHP unpack function types:
Data Processing
PHP unpack Function Description
How does an unpack receive unsignedlonglong type server in the small-end mode and the first eight bytes are unsigned long data? how can I use unpack to read it?
Unpack ("Q8md5/a10end_str", $ recv_body); no thanks
Reply to discussion
Sometimes you need to use python to process binary data, such as accessing files and using socket operations, you can use the python struct module to process binary data in c. sometimes, you need to use python to process binary data, such as when
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.