mirror of
https://github.com/Respect/Validation.git
synced 2024-06-26 09:10:08 +02:00
24 lines
492 B
Markdown
24 lines
492 B
Markdown
|
# 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:
|
||
|
|
||
|
* [Regex](Regex.md)
|
||
|
* [ResourceType](ResourceType.md)
|
||
|
* [Slug](Slug.md)
|
||
|
* [Charset](Charset.md)
|
||
|
|