---
title: std.strrep
summary: null
url: >-
  https://www.fastly.com/documentation/reference/vcl/functions/strings/std-strrep
---

```
STRING std.strrep(STRING s, INTEGER n)
```

**Available in:** all subroutines

Repeat the given string `n` times. If `n` is a negative value, it is taken to 
mean zero.

## Example

```vcl
declare local var.s STRING;
set var.s = std.strrep("abc", 3); # produces "abcabcabc"
```
