2016-03-04 17:46:07 +01:00
|
|
|
# PhpLabel
|
|
|
|
|
2017-03-27 14:47:07 +02:00
|
|
|
- `PhpLabel()`
|
2016-03-04 17:46:07 +01:00
|
|
|
|
2017-03-27 22:04:13 +02: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
|
|
|
|
```
|
|
|
|
|
2019-05-11 18:32:13 +02:00
|
|
|
## Categorization
|
|
|
|
|
|
|
|
- Strings
|
|
|
|
|
2017-03-27 22:04:13 +02:00
|
|
|
## Changelog
|
|
|
|
|
|
|
|
Version | Description
|
|
|
|
--------|-------------
|
|
|
|
1.1.0 | Created
|
|
|
|
|
2016-03-04 17:46:07 +01:00
|
|
|
***
|
|
|
|
See also:
|
|
|
|
|
2018-12-11 13:31:50 +01:00
|
|
|
- [Charset](Charset.md)
|
2017-03-28 11:53:14 +02:00
|
|
|
- [Regex](Regex.md)
|
|
|
|
- [ResourceType](ResourceType.md)
|
|
|
|
- [Slug](Slug.md)
|