Reputation: 1554
I have a single char, $x[0]
. Now, I want to get an unsigned char from 0-255. How to do this?
Also, if I have 4 chars, $x[0], $x[1], $x[2], $x[3]
I want to get an unsigned int from 0-2^32-1 out of those chars.
I hope I make sense. As a C programmer I am not sure those things are possible in PHP.
Upvotes: 1
Views: 99