respect-validation/docs/rules/PhpLabel.md

31 lines
557 B
Markdown
Raw Normal View History

2016-03-04 17:46:07 +01:00
# PhpLabel
- `PhpLabel()`
2016-03-04 17:46:07 +01:00
Validates if a value is considered a valid PHP Label,
2016-03-04 17:46:07 +01:00
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
```
## Changelog
Version | Description
--------|-------------
1.1.0 | Created
2016-03-04 17:46:07 +01:00
***
See also:
- [Regex](Regex.md)
- [ResourceType](ResourceType.md)
- [Slug](Slug.md)
- [Charset](Charset.md)