public static function unpack($string)
    {
        if (strlen($string) !== 8) {
            throw new StorageException("The string is not 64 bit long.");
        }
        $unpack = unpack("d", $string);
        if (!is_array($unpack) || !array_key_exists(1, $unpack)) {
            throw new StorageException("Could not unpack string.");
        }
        return $unpack[1];
    }
public static function unpack($string)
    {
        if (strlen($string) !== 8) {
            throw new StorageException("The string is not 64 bit long.");
        }
        $unpack = unpack("d", $string);
        if (!is_array($unpack) || !array_key_exists(1, $unpack)) {
            throw new StorageException("Could not unpack string.");
        }
        return $unpack[1];
    }
public static function unpack ( $ string ) { if ( strlen ( $ string ) !== 8 ) { throw new StorageException ( "The string is not 64 bit long." ) ; } $ unpack = unpack ( "d" , $ string ) ; if ( ! is_array ( $ unpack ) || ! array_key_exists ( 1 , $ unpack ) ) { throw new StorageException ( "Could not unpack string." ) ; } return $ unpack [ 1 ] ; }
Unpacks a 64 bit double from an 8 byte string.

@param string $string packed 8 byte string representation.
@return double unpacked 64 bit double
@throws StorageException conversion error
Unpacks a 64 bit double from an 8 byte string .