adcworks Posted January 29, 2007 Share Posted January 29, 2007 so i am aware php deals with 32 bit integers, but i am tackling the conversion of a java encryption algo that casts ints to bytes (32 bit casted to 8 bit) and cannot find anything in php natively that will support this. i guess i may need to use bitwise operators somehow but this is a little out of my normal territory, can anyone help? Link to comment https://forums.phpfreaks.com/topic/36167-convert-32bit-integer-to-8bit-byte/ Share on other sites More sharing options...
ted_chou12 Posted January 29, 2007 Share Posted January 29, 2007 can you do that by divide by 4? :P I am sorry if it sounds really stupid or it if it doesnt work...Ted Link to comment https://forums.phpfreaks.com/topic/36167-convert-32bit-integer-to-8bit-byte/#findComment-171765 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.