有人可以向我解釋嗎? 這是我的代碼: $regex = '/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+'
. '(\.[a-z0-9-]+)*(\.[a-z]{2,3})$/';
if (preg_match($regex, $email)) {
echo $email . " is a valid email. We can
爲什麼filter_var()接受並驗證此URL http://http://www.google.com? $website = "http://http://www.google.com";
echo filter_var($website, FILTER_VALIDATE_URL); // This outputs the value of $website
我認爲這是錯誤的。任何解