tao-test/app/vendor/respect/validation/docs/rules/Slug.md

19 lines
311 B
Markdown
Raw Normal View History

2022-08-29 20:14:13 +02:00
# Slug
- `v::slug()`
Validates slug-like strings:
```php
v::slug()->validate('my-wordpress-title'); // true
v::slug()->validate('my-wordpress--title'); // false
v::slug()->validate('my-wordpress-title-'); // false
```
***
See also:
* [PhpLabel](PhpLabel.md)
* [Url](Url.md)
* [VideoUrl](VideoUrl.md)