What's does “machine byte order” in PHP pack mean? [closed]
I understand little & big endian, but What's "machine byte order" mean? In pack the phrase "machine byte order" means that the endianess is determined by the current machine 1 PHP itself makes no guarantees as to which endianness such characters (e.g. S , L ) encode data, except as the ordering relates to the current machine . Therefor, be cautious with using "machine byte order" pack characters and consider the guaranteed-order counter-parts (e.g. n , v ) if there is every any doubt 1 . However, pay attention to the target data specification as some silly formats like [Microsoft] UUIDs are