respect-validation/docs/rules/Slug.md

29 lines
426 B
Markdown
Raw Permalink Normal View History

2015-01-30 09:40:06 +01:00
# Slug
- `Slug()`
2015-01-30 09:40:06 +01:00
Validates whether the input is a valid slug.
2015-01-30 09:40:06 +01:00
```php
v::slug()->validate('my-wordpress-title'); // true
v::slug()->validate('my-wordpress--title'); // false
v::slug()->validate('my-wordpress-title-'); // false
2015-01-30 09:40:06 +01:00
```
## Categorization
- Strings
## Changelog
Version | Description
--------|-------------
0.3.9 | Created
***
See also:
2018-12-11 13:31:50 +01:00
- [PhpLabel](PhpLabel.md)
- [Url](Url.md)
- [VideoUrl](VideoUrl.md)