<?php function check_mail($email){ $wyr=\"^[a-zA-Z0-9_-]+(.[a-zA-Z0-9_-]+)*\"; $wyr .=\"@([a-zA-Z0-9_-]+)(.[a-zA-Z0-9_-]+)*(.[a-zA-Z]{2,4})$\"; return true; } else { return false; } } ?>
wywołuję następująco: $dobry=check_mail($mail);
gdzie $mail to string 'mail@mail.pl'
I wyświetla mi następujące błąd:
Warning: ereg() [function.ereg]: REG_EPAREN in /home/xxxxxx/public_html/stronka.php on line 98