tags:

views:

19

answers:

2

how get UnsignedBytes in php? In java very easy: readUnsignedByte (Java)

+1  A: 

There's no byte datatype in php, however, php character type is 8-bit, that is, you can use char/string type to store bytes. fgetc reads a character from input and ord returns a numeric byte value, given a character.

stereofrog
A: 

Php does not have a byte type. Maybe an alternative is to create a byte array to represent your byte value.

Hanseh