Function validate_custom
Used when a custom regular expression is needed. Searches the value for a match to the regular expression given in pattern.
Package: PHPLucidFrame\Core
Copyright: Copyright (c), PHPLucidFrame.
License: MIT License This source file is subject to the MIT license that is bundled with this source code in the file LICENSE
Author: Sithu sithu@phplucidframe.com
See: http://php.net/manual/en/function.preg-match.php
Located at helpers/validation_helper.php
Copyright: Copyright (c), PHPLucidFrame.
License: MIT License This source file is subject to the MIT license that is bundled with this source code in the file LICENSE
Author: Sithu sithu@phplucidframe.com
See: http://php.net/manual/en/function.preg-match.php
Located at helpers/validation_helper.php
mixed |
$value |
The value being checked |
string |
$pattern |
The pattern to search for, as a string |
mixed
|
1 if the pattern matches given value, 0 if it does not, or FALSE if an error occurred.
|