Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
if (preg_match("/\.com|\.net|\.biz|\.org|\.info|\.bg/i",$message)) {
// oops ,error
}
if ( preg_match('/\.(com|net|info|biz|bg)/i', $notes)) {
die ("<h2>web SPAM message? Do NOT try that!!!</h2> ");
}
$raz = array("com", "net", "bg", "de", "ru", "org"); //допустими разширения
$current = end(explode(".", "http://web-tourist.net")); //текущо разширение
if(in_array($current, $raz)){
//разширението е допустимо
} else {
//грешка
}
| e побитово или, || е логическо или.sizif каза:"|" - е логическо "или"