src/Codec/GuidStringCodec.php
protected function swapFields(array &$components)
    {
        $hex = unpack('H*', pack('L', hexdec($components[0])));
        $components[0] = $hex[1];
        $hex = unpack('H*', pack('S', hexdec($components[1])));
        $components[1] = $hex[1];
        $hex = unpack('H*', pack('S', hexdec($components[2])));
        $components[2] = $hex[1];
    }
protected function swapFields(array &$components)
    {
        $hex = unpack('H*', pack('L', hexdec($components[0])));
        $components[0] = $hex[1];
        $hex = unpack('H*', pack('S', hexdec($components[1])));
        $components[1] = $hex[1];
        $hex = unpack('H*', pack('S', hexdec($components[2])));
        $components[2] = $hex[1];
    }
protected function swapFields ( array & $ components ) { $ hex = unpack ( 'H*' , pack ( 'L' , hexdec ( $ components [ 0 ] ) ) ) ; $ components [ 0 ] = $ hex [ 1 ] ; $ hex = unpack ( 'H*' , pack ( 'S' , hexdec ( $ components [ 1 ] ) ) ) ; $ components [ 1 ] = $ hex [ 1 ] ; $ hex = unpack ( 'H*' , pack ( 'S' , hexdec ( $ components [ 2 ] ) ) ) ; $ components [ 2 ] = $ hex [ 1 ] ; }
Swaps fields to support GUID byte order

@param array $components An array of UUID components (the UUID exploded on its dashes)
@return void
Swaps fields to support GUID byte order