![](/img/trans.png)
[英]How to validate the email format after a user has entered an email in an input using php and return the email of the user?
我是初學者,有一個輸入,用戶可以在其中輸入可選的 email。我想確保用戶輸入的內容是否正確,email 格式是否正確。 我在嘗試使用“&&”時確實遇到語法錯誤,但我很確定可以在一個 if 中檢查 2 個條件(不是空的和正確的格式)。 我還想用用戶輸入的 email 替換 echo ...