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

24 lines
490 B
Markdown
Raw Normal View History

2022-08-29 20:14:13 +02:00
# PhpLabel
- `v::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
```
***
See also:
* [Charset](Charset.md)
* [Regex](Regex.md)
* [ResourceType](ResourceType.md)
* [Slug](Slug.md)