PHP基礎1

寫一個email的正則 $mail = '[email protected]'; //郵箱地址 $pattern = "/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,})$/"; preg_match($pattern, $mail, $matches); //驗證可以使用 filter_var($email,
相關文章
相關標籤/搜索