PHP pack function Option List

Source: Internet
Author: User

Pack

The compressed data is in the string.

Syntax: String pack (string format, mixed [ARGs]...);

Return Value: String


A Fill the blank string with null characters
A Fill the blank string with space characters
H Hexadecimal string, before low
H A hexadecimal string that is in front of a high position.
C Character with signs
C No. Character
S Short INTEGER (Sixteen digits, in the order of digits)
S No. Short INTEGER (Sixteen digits, in the computer's bit order)
N No. Short INTEGER (sixteen bits, in the descending order)
V No. Short INTEGER (sixteen bits, the order in which the low position is placed)
I An integer with numbers (in computer order and range)
I No-number INTEGER (in computer order and range)
L An integer with numbers (two digits of numbers, in the order of digits)
L No. Long Integer (two digits in the computer's bit order)
N No-number short INTEGER (two-digit, descending order)
V No. Short INTEGER (decimal two, descending order)
F Single exact floating point number (based on the computer range)
D Exact floating point number (in the computer range)
X Vacant Space
X Returns one digit.
@ Enter null characters to the absolute position

 

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.