<?php $dopasowanie = "/^( [a-zA-Z0-9] )+( [a-zA-Z0-9._-] )*@( [a-zA-Z0-9_-] )+( [a-zA-Z0-9._-] +)+$/"; // to chyba nawet znalazlem na wortalu php.pl //i to //$dopasowanie = '/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+.[a-zA-Z]{2,}$/'; $email = 'abc@com.pl'; ?>
zwraca mi
Kod
int(0)
Cytat
Zwracane wartości
preg_match() returns the number of times pattern matches. That will be either 0 times (no match) or 1 time because preg_match() will stop searching after the first match.
preg_match() returns the number of times pattern matches. That will be either 0 times (no match) or 1 time because preg_match() will stop searching after the first match.
moze mi to ktos wytlumaczyc dlaczego zwraca mi zero?
