public static function hash($value)
    {
        $hash = substr(base64_encode(hash('sha256', serialize($value), true)), 0, 7);

        return str_replace(array('/', '+'), array('.', '_'), strtolower($hash));
    }
public static function hash($value)
    {
        $hash = substr(base64_encode(hash('sha256', serialize($value), true)), 0, 7);

        return str_replace(array('/', '+'), array('.', '_'), strtolower($hash));
    }
public static function hash ( $ value ) { $ hash = substr ( base64_encode ( hash ( 'sha256' , serialize ( $ value ) , true ) ) , 0 , 7 ) ; return str_replace ( array ( '/' , '+' ) , array ( '.' , '_' ) , strtolower ( $ hash ) ) ; }
Computes a reasonably unique hash of a value.

@param mixed $value A serializable value

@return string
Computes a reasonably unique hash of a value .