Heads up! This post was written 14 years ago. Some information might be outdated or may have changed since then.
Много бърза проверка дали въведеният от потребителя текст е валиден email адрес.
if (preg_match('/^[^\W][a-zA-Z0-9_]+(\.[a-zA-Z0-9_]+)*\@[a-zA-Z0-9_]+(\.[a-zA-Z0-9_]+)*\.[a-zA-Z]{2,4}$/', $email)) {
    echo 'Valid email';
}

Back to all posts