What is the meaning of \x00 , \x04 in PHP

前端 未结 5 760
甜味超标
甜味超标 2021-01-31 07:39

i have some codes having the \\x00 and \\x04 hex codes, what does it means?

$str= implode(\"\\x00\",          


        
5条回答
  •  一生所求
    2021-01-31 08:27

    \xHH is an escape sequence that describes the byte with that hexadecimal value.

    So \x00 describes the byte with the value 0, \x04 the byte with the value 4. Note that this escape sequence is only interpolated in double quoted strings.

提交回复
热议问题