0byt3m1n1
Path:
/
home
/
mgatv524
/
www
/
mctv
/
vendor
/
respect
/
validation
/
library
/
Rules
/
[
Home
]
File: PhpLabel.php
<?php /* * This file is part of Respect/Validation. * * (c) Alexandre Gomes Gaigalas <alexandre@gaigalas.net> * * For the full copyright and license information, please view the "LICENSE.md" * file that was distributed with this source code. */ namespace Respect\Validation\Rules; class PhpLabel extends AbstractRule { public function validate($input) { return is_string($input) && preg_match('/^[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*$/', $input); } }