$matches ) ){
// $phonenum = '+7' . ' (' .$matches[1] . ') ' . $matches[2] . '-' . $matches[3];
$dsad = $matches[1] . $matches[3] . $matches[5] . $matches[6] . $matches[7];
}
echo $dsad;
Undefined variable: dsad
If the preg_match condition does not match wih the input, the variable dsad won't be defined, because it is in the if statement that is not executed.
Обсуждают сегодня