# url

Checks for a valid Url

****

- Source: <https://github.com/getkirby/kirby/tree/5.5.3/src/Toolkit/V.php#L632>

****

```php
V::url($value): bool
```

## Parameters

| Name | Type | Default | Description |
| ---- | ---- | ---- | ---- |
| `$value` (required) | `mixed` | – | – |

## Return type

`bool`

<info>
The URL validation may lead to incorrect results (= a valid URL being marked as invalid or the other way around) in rare edge-cases.
</info>

## In your code

```php
if (V::url('https://getkirby.com')) {
  echo 'Yay, valid!';
}
```

## In fields

```yaml
fields:
  example:
    label: Example field
    type: text
    validate: url
```