respect-validation/docs/rules/PhpLabel.md
Henrique Moody a009286ba6
Update "See also" section in the rules's documentation
Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
2018-12-11 13:19:52 +01:00

490 B

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

v::phpLabel()->validate('person'); //true
v::phpLabel()->validate('foo'); //true
v::phpLabel()->validate('4ccess'); //false

See also: