respect-validation/docs/rules/PhpLabel.md
Henrique Moody 10df3211f5
Add "Categorization" section to rule documentations
Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
2019-05-11 19:16:21 +02:00

34 lines
586 B
Markdown

# PhpLabel
- `PhpLabel()`
Validates if a value is considered a valid PHP Label,
so that it can be used as a *variable*, *function* or *class* name, for example.
Reference:
http://php.net/manual/en/language.variables.basics.php
```php
v::phpLabel()->validate('person'); //true
v::phpLabel()->validate('foo'); //true
v::phpLabel()->validate('4ccess'); //false
```
## Categorization
- Strings
## Changelog
Version | Description
--------|-------------
1.1.0 | Created
***
See also:
- [Charset](Charset.md)
- [Regex](Regex.md)
- [ResourceType](ResourceType.md)
- [Slug](Slug.md)