Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Can anyone tell me why this regular expression does not match? It matches fine in an online tester.
- var_dump([$this->$attribute, preg_match('/^\d{1,5}$/g', $this->$attribute)]); exit;
- array(2) {
- [0]=>
- string(5) "10123"
- [1]=>
- bool(false)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement