Php numbers are flushed into strings. This post was last edited by sevencolours24 from 2013-02-2617: 03: 54. I want to organize a string. put a UINT in the first four bytes, for example, 65*256 + 97, then the result displayed in byte order is "Aa @ abc". for example, I have defined $ a = 65*2 php numbers to be flushed into the string.
This post was edited by sevencolours24 at 17:03:54. I want to organize a string. put the first four bytes in a UINT, for example, 65*256 + 97, followed by a string "@ abc"
The result displayed in byte order is "Aa @ abc"
For example, I define $ a = 65*256 + 97, $ B = "@ abc"
There is a variable $ c. how can I put $ a and $ B in $ c to display it as "Aa @ abc"
------ Solution --------------------
Process $ a with pack ()
Or split $ a into high and low bits, each taking the chr () value, and then splicing
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