PHP中\ x00,\ x04的含义是什么 [英] What is the meaning of \x00 , \x04 in PHP
本文介绍了PHP中\ x00,\ x04的含义是什么的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一些具有 \ x00 和 \ x04 十六进制代码 的代码,这是什么意思?
i have some codes having the \x00 and \x04 hex codes, what does it means?
$str= implode("\x00", $var['message']); //line 1
$id= $var['message'] . "\x04" . $id; //line 2
第1行和第2行会发生什么情况,我想将它们作为 binary格式写入外部文件.
what will happen in the line1 and line2 I want to write these into a external file as binary format.
我在哪里可以得到所有这样的信息.
where do i get all information like this.
推荐答案
\x
表示十六进制表示法.请参阅: PHP字符串
\x
indicates hexadecimal notation. See: PHP strings
看看 ASCII表,看看0x00和0x04代表什么.
Have a look at an ASCII table to see what 0x00 and 0x04 represent.
0x00 = NULL
0x04 = EOT (End of transmission)
这篇关于PHP中\ x00,\ x04的含义是什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文