public static function hash($value)
    {
        $hash = is_object($value)
            ? spl_object_hash($value)
            : md5(Php::encode($value));

        return $hash;
    }
public static function hash($value)
    {
        $hash = is_object($value)
            ? spl_object_hash($value)
            : md5(Php::encode($value));

        return $hash;
    }
public static function hash ( $ value ) { $ hash = is_object ( $ value ) ? spl_object_hash ( $ value ) : md5 ( Php :: encode ( $ value ) ) ; return $ hash ; }
Get hash for value for any type

@param mixed $value

@return string
Get hash for value for any type