Home >Backend Development >PHP Tutorial >使用php的socket_read如何读一个int出来?

使用php的socket_read如何读一个int出来?

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-06 20:15:241076browse

对socket_read不太熟,它返回的是string
或者用别的方式实现readInt也可,求助

回复内容:

对socket_read不太熟,它返回的是string
或者用别的方式实现readInt也可,求助

http://www.oschina.net/code/snippet_157781_9206

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