# kirbytag()

Makes it possible to use any defined Kirbytag as standalone function

****

- Source: <https://github.com/getkirby/kirby/tree/5.5.3/config/helpers.php#L286>

****

```php
kirbytag(array|string $type, string|null $value = null, array $attr = [ ], array $data = [ ]): string
```

## Parameters

| Name | Type | Default | Description |
| ---- | ---- | ---- | ---- |
| `$type` (required) | `array` or `string` | – | – |
| `$value` | `string` or `null` | `null` | – |
| `$attr` | `array` | `[ ]` | – |
| `$data` | `array` | `[ ]` | – |

## Return type

`string`

## Examples

```php
echo kirbytag([
  'link'  => 'blog/my-article',
  'text'  => 'Go to my blog article'
]);

// will manually do the same as
// (link: blog/my-article text: Go to my blog article)
// in KirbyText
```