Home >Backend Development >PHP Tutorial >求高手 php socket 16进制数据发送有关问题

求高手 php socket 16进制数据发送有关问题

WBOY
WBOYOriginal
2016-06-13 10:51:27770browse

求高手 php socket 16进制数据发送问题
我的server要接收到”FA 01 01“,是16进制,我该如何发送!
直接发送,接收到是”31 36 33 38 34 32 35 37 “
谢谢!

------解决方案--------------------
"\xFA\x01\x01" 

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn