<?php
$email = 'johnsnow@foo.de';
$dictionary = array('aero', 'arpa', 'asia', 'biz', 'cat', 'com', 'coop', 'edu', 'gov', 'info', 'int', 'jobs', 'mil', 'mobi', 'museum', 'name', 'net', 'org', 'pro', 'tel', 'travel');
$expression = '^[a-z0-9_-]+(?:[a-z0-9._%+-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+(?:[A-Z]{2}|' . implode('|', $dictionary) . ')$';
return mb_eregi($expression, $email) !== false
- Output for 5.4.0 - 5.4.29
- Parse error: syntax error, unexpected end of file in /in/gDM3o on line 7
Process exited with code 255. - Output for 5.3.0 - 5.3.28
- Parse error: syntax error, unexpected $end in /in/gDM3o on line 7
Process exited with code 255.
preferences:
184.02 ms | 1395 KiB | 66 Q